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

Mehrdad wfunction at hotmail.com
Mon Dec 10 17:19:09 PST 2012


On Monday, 10 December 2012 at 16:46:19 UTC, Dmitry Olshansky 
wrote:
> 12/10/2012 8:12 AM, Mehrdad пишет:
>> On Monday, 10 December 2012 at 03:53:04 UTC, Walter Bright 
>> wrote:
>>> I do not dispute that deep copy is commonly used in C++. I 
>>> challenge
>>> the idea that it is a good design pattern, i.e. better than 
>>> using
>>> copy-on-write.
>>
>>
>>
>>
>> Ignoring the design issue, it's plain faster -- for COW you 
>> have to
>> perform checks on every call.
>
> On every write obviously. In short - it depends on the use case.


lol I thought it was rather obvious that e.g. if you never do any 
calls to begin with then the point is moot... but thanks for the 
clarification lol =P


More information about the Digitalmars-d mailing list