lua-users home
lua-l archive

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


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
// david@teambondi.com



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..?