lua-users home
lua-l archive

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


On Sun, May 9, 2010 at 15:37, Jonathan Castello <twisolar@gmail.com> wrote:
> In regards to the "tbl[] = value" suggestion, I like it. My only
> problem is, what would tbl[] return in an __index context? "tbl[] =
> value" is obvious enough, but I'm not sure what "value = tbl[]" would
> do without being un-obvious.
>
> ~Jonathan Castello
>

value = tbl[] doesn't necessarily have to be valid, but perhaps it
could be a shortcut for value = next(tbl)?

-- 
Sent from my toaster.