lua-users home
lua-l archive

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


Andreas Stenius wrote:

Sam Roberts skrev:

Some people already don't like auto-coercions between
number and string, can you imagine the trouble it would
cause to have your user-data auto-coerced to strings? :-(

This is not a problem. The only place the user-data or
other type will be replaced with a string is in the stack
where the string.format routine collects it's arguments.

Sam was responding to John Belmonte's suggestion that
lua_tostring honor __tostring.

--
Aaron