lua-users home
lua-l archive

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

>Secondly, I've improved my tostring implementation. Now, you can add 
>stringifier methods for any tag, and tostring will automatically be able 
>to turn your type into a string.

Lua 5.0 will support this: tostring in the baselib will look at __tostring
in an object's metatable and call this if set.