lua-users home
lua-l archive

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


On Sun, Dec 19, 2010 at 10:20:06AM +0200, steve donovan wrote:
> 
> But consider the slice notation that was discussed recently.  The
> problem is that ls[{1,4,6]}] says 'index by array' to me (this is a
> common idiom in array-oriented languages). 

I'm convinced now that table-valued indices are useful to many people.
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}.

Dirk

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