lua-users home
lua-l archive

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


Hi,

There wouldn't be a string. lua_tostring_noconvert when pointed at a number
would return NULL.

This brings it closer to the behavior of lua_touserdata on
something that is not a userdata. Perhaps things should be
more orthogonal. Add a __tostring that would be always invoked by lua_tostring (this would replace the element in the
stack). And then have a lua_rawtostring that would just
return NULL for non-strings...

Regards,
Diego.