[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: nil-valued globals
- From: "Wim Couwenberg" <w.couwenberg@...>
- Date: Wed, 5 Feb 2003 22:13:31 +0100
Hi,
> Is it possible to distinguish between an undefined global variable
> and one that is defined but has the value 'nil'? Or does assigning
> the value 'nil' to a global variable essentially undefine that global?
Assigning nil to table entries (including the globals table) will make make
the entry disappear. Lua 5 introduced the boolean values true and false,
maybe you can use these (i.e. false) instead?
Bye,
Wim
- References:
- nil-valued globals, xenarcher <nickl@<a href="/cgi-bin/echo.cgi?volition-inc.com">...</a>>