2011/8/11 sebb <seb...@gmail.com>:
> 2011/8/11 Sébastien Brisard <sebastien.bris...@m4x.org>:
>> OK, this I also think would be useful. But my initial question
>> remains, if the object I want to protect is not a RealVector, what do
>> you think of my solution ?
>> Sébastien
>
> If you create the read-only version by subclassing the writable
> version, then you have to ensure that all mutating methods are
> overridden.
> If a base class is later extended to add a new mutator, the protection is 
> lost.
That's quite true... Didn't think of that. It pretty much ruins it, doesn't it?

Sebastien

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to