lua-users home
lua-l archive

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


On Wed, Jun 13, 2012 at 10:59 PM, Andrew Starks <andrew.starks@trms.com> wrote:
> b = nil
> print(a[b])
> --> nil

As `b` is now nil, `a[b]` means `a[nil]`, and as `nil` is never a
valid table key, `a[nil]` will give `nil` for all tables `a`.