Time to kill T() as (sometimes) working T.init alias ?

Dmitry Olshansky dmitry.olsh at gmail.com
Sat Dec 1 00:18:34 PST 2012


12/1/2012 8:32 AM, Walter Bright пишет:
> On 11/30/2012 3:31 PM, Mehrdad wrote:
>> If that's the case, then we need to get rid of postblits entirely.
>
> The only justification I've ever been able to come up with for postblits
> is implementing a reference counting type.

+ copy on write
+ value semantics of typically small containers*

*Small string optimization is only useful if the type has value 
semantics and lives on the stack.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list