[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Function call with number parameter becomes a string parameter inside the function
- From: "D Burgess" <dburgess@...>
- Date: Thu, 29 Jun 2006 20:34:56 +1000
Carsten Fuchs wrote:
lua_tostring() from my code.
However, I'm wondering why lua_tostring() behaves in this (somewhat
surprising) manner? This makes it different from all the other lua_to*()
functions, and I wonder why this is so??
I guess that the conversion to a string means that the string has to be
allocated and stored somewhere. Numbers and booleans presumably
do not have the allocation issue.