struct + writeln

bearophile bearophileHUGS at lycos.com
Sun Nov 18 05:58:45 PST 2012


Namespace:

> Why are there so many copies of my struct if I give it to 
> writeln?
> http://dpaste.dzfl.pl/414e7d93
> This problem occurs even if I have a 'toString' method.

It looks the compiler is working correctly here. It seems a pure 
Phobos/writeln problem.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list