[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: what on earth..? equivalence (==) not working
- From: David Morris-Oliveros <david.morrisoliveros@...>
- Date: Wed, 17 May 2006 14:58:32 +1000
I believe it does coerce types, but only on the C side, so if you're
using the API, and there's a number there, and you call lua_tostring(),
it will coerce it. I believe that's true for all types except for
booleans, which have no real mappings to other types.
// David Morris-Oliveros
// Camera & Lua Coder
Damian Stewart wrote:
David Morris-Oliveros wrote:
What about the types?
Does 235 == '235' ?
aah. it seems id is a string but arm_id is a number.
i thought lua converted automagically between the two types..?