[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_next() crashing on former LUA_TNONE arguments
- From: Sean Conner <sean@...>
- Date: Sat, 16 Dec 2017 16:56:08 -0500
It was thus said that the Great Roberto Ierusalimschy once stated:
> > This won't destroy any of the values on the stack, and it calls any
> > user-supplied "__tostring" method. Yes, it relies upon the Lua function
> > tostring() to be in the global namespace, but that isn't an issue with my
> > code. I also print both the positive and negative stack indecies, which I
> > find useful.
> You can call 'luaL_tolstring' directly, instead of using 'tostring'.
I noticed that afterwards, but I'm still using 5.1 at work.