lua-users home
lua-l archive

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


On Thu, Jul 9, 2015 at 9:35 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>   -- put this somewhere in your code; it can be global or local:
>   E = {}
>
>   if ((((a or E).b or E).c or E).d or E).e == something then ...


be careful not to forget the last '.e', or your variable can alias E,
with funny results if you start populating it.  (i'm sure somebody
will advice on setting a __newindex to block that)

-- 
Javier