Time to kill T() as (sometimes) working T.init alias ?
monarch_dodra
monarchdodra at gmail.com
Tue Dec 11 05:53:04 PST 2012
On Tuesday, 11 December 2012 at 13:39:22 UTC, Dan wrote:
>
> Can you confirm this with an example? Again, I think default
> opAssign calls postblit. postblit increments. In this example
> everything looks fine without opAssign (except for the bug you
> point out regarding S()).
>
> http://dpaste.dzfl.pl/7fe03a43
>
Oops. Correct.
Note that opAssign *also* calls the destructor. This is important
too, or it would only get half the job done.
More information about the Digitalmars-d
mailing list