[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: strange table index "end"
- From: Leo Razoumov <slonik.az@...>
- Date: Wed, 9 Mar 2011 09:27:34 -0500
On Wed, Mar 9, 2011 at 09:06, Steve Litt <slitt@troubleshooters.com> wrote:
>
> This is the first surprising behavior I've ever seen in Lua. I would have
> expected it to know that mytable.end is a table element whose name happens to
> be "end".
>
Implementing such behavior might be possible but it will make
parser/lexer more complicated and could alter Lua grammar.
Out of curiosity, are there languages around that allow keyword tokens
to be used as variables, strings, etc ?
--Leo--