[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Function call with number parameter becomes a string parameterinside the function
- From: "Daniel Collins" <daniel.collins@...>
- Date: Fri, 30 Jun 2006 11:12:30 +0930
Nobody has suggested what seems to me an obvious variation. lua_tostring
leaves the original value unchanged, and pushes either nil or the string
onto the top of the stack. That way you can copy the string if desired,
then pop it when you are finished with it.