lua-users home
lua-l archive

Re: nil isn't as unique in Lua 4.1

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


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

AltStyle によって変換されたページ (->オリジナル) /