Struct d'tors and destructive assignment of return vals

Steven Schveighoffer schveiguy at
Tue May 26 18:49:21 PDT 2009

On Tue, 26 May 2009 21:44:51 -0400, dsimcha <dsimcha at> wrote:

> == Quote from Steven Schveighoffer (schveiguy at's article
>> What if fun throws an exception?
>> -Steve
> Argh good point, didn't think of that.  Then I guess you're just  
> screwed.  In that
> case, do you see any other way to get good COW semantics in this  
> situation?

opAssign maybe?  not sure...


More information about the Digitalmars-d mailing list