[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Possible string conversion problem
- From: gary ng <garyng2000@...>
- Date: Thu, 27 Mar 2008 23:35:35 -0700 (PDT)
--- Eugen-Andrei Gavriloaie <shiretu@gmail.com> wrote:
> > a={}
> > print(a)
> table: 0x10b1b0
> >
>
> I think the question remains: Why boolean variables
> are so special? Am
> I missing something important?
>
>a=true
>print(a)
>true
so what is the different between boolean and table ?
the only auto convertion as far as I know is number
all the rest would give you error if you want to do a
'concat' or other string operation. print() do the
tostring() internally if I am not mistaken because
that is the end result you want(print), 'a human
readable representation of a lua value'.
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs