lua-users home
lua-l archive

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

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.