Taking a copy of an object

Hasan Aljudy hasan.aljudy at gmail.com
Thu Aug 3 15:26:26 PDT 2006



Tom S wrote:
> Hasan Aljudy wrote:
> 
>>
>>
>> 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)
> 
> 
> There was a subtle difference in what I wrote :) 'generate' vs 'create' 
>  - that is. Generating own .dup and/or serialization functions based on 
> meta data is different than writing/creating your own routines to handle 
> that by hand.
> 
> 
> -- 
> Tomasz Stachowiak

Sorry, what's the difference of writing code and "generating code by 
yourself"?



More information about the Digitalmars-d mailing list