lua-users home
lua-l archive

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

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. 

- DC