[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Reserved Words
- From: "Thiago Bastos" <hellraider@...>
- Date: Tue, 31 Dec 2002 14:21:04 -0200
>Apparently this only applies for identifiers, not reserved words, so that
> x.break
>is illegal, and NOT the same as
> x["break"]
>Thoughts anyone?
I think it would suffice to have x. accept a LITERAL, and not just NAMES.
Then one could use:
x.valid
x."break"
x."if"
Etc.
Some scripting languages use this approach.
+Thiago Bastos