[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: Thu, 10 Jan 2002 09:24:26 -0600 (CST)
On Thu, 10 Jan 2002, 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