Opportunities for D

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 9 14:47:49 PDT 2014


On 7/9/14, 1:51 PM, Walter Bright wrote:
> On 7/9/2014 1:35 PM, Andrei Alexandrescu wrote:
>> Hmmm... how about using u after that?
>
> Using u after that would either cause an exception to be thrown, or
> they'd get T.init as a value. I tend to favor the latter, but of course
> those decisions would have to be made as part of the design of Unique.

That semantics would reenact the auto_ptr disaster so probably wouldn't 
be a good choice. -- Andrei



More information about the Digitalmars-d mailing list