Taking a copy of an object

Hasan Aljudy hasan.aljudy at gmail.com
Thu Aug 3 13:09:45 PDT 2006



Tom S wrote:
> Hasan Aljudy wrote:
> 
>>
>> a compiler generated .dup method would be nice.
> 
> 
> 
> Reflection and the ability to generate your own would be even better.

well you already can create your own .dup
I mean it's just a method that returns typeof(this)



More information about the Digitalmars-d mailing list