lua-users home
lua-l archive

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


Romulo Bahiense <romulo@icontroller.com.br> wrote:
(24/02/2005 19:09)

>
>> I think those two statements work the same.
>> (I'm open to correction..)
>
>not really:
>
>Lua 5.0.2  Copyright (C) 1994-2004 Tecgraf, PUC-Rio
> > t = {[false]=1,[true]=2}
> > print(next(t))
>false   1
> > t = {}
> > print(next(t))
>nil
>
>
>
>--rb


ok :)
I guess I got too used to testing for presence or absence, rather than true or false. It's useful to me, though I guess it leaves me limited in things. Still learning, I just use Lua to solve things I can't solve in the apps I'm using, mostly. It's good though, I like the way it works, what I know of it..