lua-users home
lua-l archive

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


> 1.Are the reserved names all those with an underscore followed by _ALL_ 
> uppercase letters? 

Yes.

> 2. Is the underscore itself to be considered an uppercase letter? I.e. 
> is __VERSION (two underscores at the beginning) to be considered reserved?

Yes.

> 3. Does > this mean that I'm free to use mytable._VERSION without
> violating the convention?

Yes.

Having said that, this convention is just that, a convention. Just something
to be aware of. It's no sin to redefine __VERSION say or even _G. On the
other hand, in 5.2, if you redefine _ENV then it does have consequences at
compile time.