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