[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Depth indexing of nil
- From: Javier Guerra Giraldez <javier@...>
- Date: Thu, 9 Jul 2015 10:20:06 -0500
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