lua-users home
lua-l archive

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


Not quite true. These languages don't have such 'syntatic sugar' things.
IMHO, if a.b is just a syntatic sugar for a["b"] it must work exactly the
same way.

with respect,
Grisha

----- Original Message -----
From: "Roberto Ierusalimschy" <roberto@inf.puc-rio.br>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Tuesday, November 25, 2003 7:58 PM
Subject: Re: Reserved keywords


> > Is it really necessary that the parser complains about the use
> > of reserved keywords  in case of foo.<keyword> or
> > foo:<keyword> type syntax?
>
> I wouldn't say that it is "really necessary", but it is how it works in
> virtually all languages that have reserved words (C, C++, Java, Pascal,
> Ada, etc.)
>
> -- Roberto