Re: nil isn't as unique in Lua 4.1
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: nil isn't as unique in Lua 4.1
- From: Roberto Ierusalimschy <rieru@...>
- Date: 2002年1月10日 09:24:26 -0600 (CST)
On 2002年1月10日, Peter Shook wrote:
> I'd rather not have the boolean type because then there will be a need
> for functions like Perl's 'defined' (to tell if a variable is not nil)
> and 'exists' (to tell if a table has a value for a particular key). How
> else with you be able to tell if a variable is false or nil?
a == nil x a == false
a[i] == nil x a[i] == false
-- Roberto