lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sun, Dec 19, 2010 at 1:28 PM, Dirk Laurie <dpl@sun.ac.za> wrote:
> I'm convinced now that table-valued indices are useful to many people.

Yes, there are a couple of cute uses possible. In my case there were
_two_ possible things that a table index could mean, and that seemed
confusing!

> However, there is still __call available, which, as Luiz pointed out
> in the slice thread on 2010-12-15, allows the syntax ls{1,4,6}.

__call works well on the right-hand side, but can't be coerced into
working on the left-hand side; indexing is the only operator that has
that desirable property.

> PS: Is the list archive reference number available when the post is
> published?  If not, why not?

Normally, one goes to http://lua-users.org/lists/lua-l/ and does a search.

steve d.