lua-users home
lua-l archive

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


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