writeln an object

JN 666total at wp.pl
Thu Apr 18 10:42:52 PDT 2013


On Thursday, 18 April 2013 at 17:36:10 UTC, gedaiu wrote:
> Hi,
>
> how i can control what writeln outputs when I pass an object 
> parameter?
>
> Thanks,
> Bogdan

You can override the toString() method, like this 
http://dpaste.dzfl.pl/db7dbe28


More information about the Digitalmars-d-learn mailing list