Copy instead of reference?

Namespace rswhite4 at googlemail.com
Thu May 23 05:30:41 PDT 2013


On Thursday, 23 May 2013 at 12:29:04 UTC, Artur Skawina wrote:
> On 05/23/13 13:57, Namespace wrote:
>> I know that D has (sadly) no C++ references, but I still think 
>> that
>> 
>> A a = some_existing_A;
>> 
>> should call opAssign.
>
> Not opAssign, but user-defined copy-constructor. But D does not 
> have
> them either...
>
> artur

That would be a solution.


More information about the Digitalmars-d-learn mailing list