lua-users home
lua-l archive

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


Hi there,

there's no entry in the Metatable for tostring/tonumber?
I can't make a Object-Table to say it's class when being tostring'ed?
so that e.g.:

myobject=Car.New{TopSpeed=160,Brand='Opel',Type='Corsa'}

write(tostring(myobject))

would result in:
Car Object: Opel Corsa, 160 km/h max

That's right, isn't it?

Dom