Hi,
I have a number of classes and each has an overridden toString method.
I was just thinking that it would be great if I could just use
and the toString method is automatically called.
Since TObject is the base class of all classes, and comes with a toString method, this should work for all class instances, right?
And when the Instance is Nil, the write 'nil'.
Currently, an error is generated by the compiler if you try to writeln the class instance.
Lazarus + FPC trunk; MacOs Tahoe