I have decided that PatternSet.clone() should return also a reference rather 
than the referenced object if the object is a reference.

When the object is used, the different getters will bring the user back to the 
referenced object.

The only little concern I had with this approach was that if the
referenced object was changed between the moment the referencer is
cloned, and the moment it effectively accesses the cloned referencer
instance (and thus the modified referenced instance), accessing the
cloned reference may gives a false sense of "security", the user
thinking the clone is private and won't change, despite the fact that
it's still "just" a proxy (reference in Ant terms) to another
instance, that one not cloned.

Confusing statement, I know ;-) --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to