lua-users home
lua-l archive

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

On Wed, Mar 9, 2011 at 8:06 AM, Steve Litt 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".

Doesn't work in Lua:


 '<name>' expected near 'do'

Doesn't work in C:

  typedef struct rec {
    int do;

error: expected identifier or '(' before 'do'

Doesn't work in Pascal:

  type rec=record
    do: integer;

Fatal: Syntax error, "identifier" expected but "DO" found

- Jeff