[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: metatable - tostring,tonumber
- From: "nikdo79" <dominik-wagner@...>
- Date: Tue, 19 Mar 2002 22:27:05 -0000
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