Copy constructor in D. Why it is necessary to have it.
    Sergey Gromov 
    snake.scaly at gmail.com
       
    Thu Oct  2 13:51:19 PDT 2008
    
    
  
Wed, 01 Oct 2008 10:23:40 -0700,
Sean Kelly wrote:
> > 3) .dup  =>  .copy
> 
> .dup is fine as is, and I think it should always perform a deep copy. 
> With D going the direction it is, shallow copies are of limited use and 
> can therefore be called .shallow or something.
Deep copy is not possible without knowing the object structure.  How 
about opDup?  :)
    
    
More information about the Digitalmars-d
mailing list