lua-users home
lua-l archive

Re: Clarification needed: naming conventions

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


Added my emphasis:
manual> Lua is a case-sensitive language: and is a reserved word, but
manual> And and AND are two different, valid names. As a convention,
manual> names *starting with an underscore followed by uppercase
manual> **LETTERS** (such as _VERSION)* are reserved for internal
manual> global variables used by Lua.
Lorenzo> My doubt was whether the underscore is to be considered uppercase,
It doesn't matter if an underscore is "uppercase" or not. An
underscore is not a letter! Case closed :-)

AltStyle によって変換されたページ (->オリジナル) /