Taking a copy of an object

Tom S h3r3tic at remove.mat.uni.torun.pl
Thu Aug 3 13:59:06 PDT 2006


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



More information about the Digitalmars-d mailing list