Wouldn't it be great if every object had a method Repr$() which returned a string describing the object, and which the Print command would implicitly call, so we can do stuff like:
Please don't tell me this already exists, I've been kludging round it for ages.
Type dude field name$, lives Method Repr$() Return name+" ("+lives+" lives)" End Method End Type jim:dude=new dude jim.name="Jim" jim.lives=5 Print "You are playing as "+jim
Please don't tell me this already exists, I've been kludging round it for ages.