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

Dan dbdavidson at yahoo.com
Mon Dec 10 19:09:46 PST 2012


On Tuesday, 11 December 2012 at 01:47:38 UTC, Walter Bright wrote:
> On 12/10/2012 10:40 AM, Dan wrote:
>> For something as simple as this would you introduce COW?
>
> Yes.

Any D examples showing the pattern in action with structs? I did 
not see anything in the index of TDPL on COW except one reference 
regarding strings. If it is a better approach I would like to 
know more about how it is done and the trade-offs. Some of the 
responses refer to having to check on every access, so is that 
not tough to manage?

Thanks
Dan


More information about the Digitalmars-d mailing list