Never called destructor

bearophile bearophileHUGS at lycos.com
Thu Mar 25 18:28:06 PDT 2010


div0:
>     scope x = new A("x");
>     y = new A("y");
>     x = y;

In my opinion it's better to not reassign references of scoped objects.
In real programs where possible it's better to write boring and stupid code :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list