[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Function call with number parameter becomes a string parameter inside the function
- From: Diego Nehab <diego@...>
- Date: Thu, 29 Jun 2006 16:46:00 -0400 (EDT)
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...