[Gambas-bugtracker] Bug #1703: _print(stream) as an object special function

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat Oct 16 17:03:10 CEST 2021


http://gambaswiki.org/bugtracker/edit?object=BUG.1703&from=L21haW4-

Comment #8 by Brian G:

I would like to amend this such that the special method _print would return a text representation of the class or object

Print could check objects for this method and use it to display the class or objects text representation, this could override the default print action of for instance 
dim a as new MyClass

print a

<MyClass xxxxxx>

This could actually output something useful!

This really would be helpful in so many ways!




More information about the Bugtracker mailing list