2011/5/5 Stéphane Ducasse <[email protected]>:
> why copy is not enough for you?
> and you redefine postCopy to copy the instance variables?

Because it would involve manual labour for any object that is going to
be used in business logic. This would create artificial requirement
that is easily forgotten. However first try-out of this approach used
postCopy in domain objects.

I thought that copyTwoLevel is going to be deprecated because it is
too specific. However I am not sure whether this is actually true. It
depends how often copying objects is necessary.
The deprecation is not a problem. I can easily just create utility
class that copies objects like copyTwoLevel.

-- 
Panu

Reply via email to