[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: general globals in use
- From: "Thijs Schreijer" <thijs@...>
- Date: Wed, 12 Dec 2012 16:51:30 +0100
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
> Behalf Of Roberto Ierusalimschy
> Sent: woensdag 12 december 2012 14:48
> Subject: Re: general globals in use
> Lua has the following convention:
>
> http://www.lua.org/manual/5.2/manual.html#3.1
>
> As a convention, names starting with an underscore followed by
> uppercase letters (such as _VERSION) are reserved for variables used
> by Lua.
>
> In particular, the use of _TEST by an external library breaks it.
>
> -- Roberto
How do "names" relate to table keys? The _VERSION is a name, but also a key
in _G.
Does this mean that the common module conventions for;
module._VERSION
module._COPYRIGHT
module._DESCRIPTION
(straight from copas) are also breaking the rules?
Thijs