Re: [DISCUSSION] Views of immutable objects.

2007-07-16 Thread Roman Kennke
Hi Paulo, Am Samstag, den 14.07.2007, 18:52 +0100 schrieb Paulo Levi: > I'd like to ask if it would be possible to modify the classes of some > primitive immutable types for returning immutable read only views. > For example for strings, when using the document hierarchy, any > insertString in the

[DISCUSSION] Views of immutable objects.

2007-07-16 Thread Paulo Levi
I'd like to ask if it would be possible to modify the classes of some primitive immutable types for returning immutable read only views. For example for strings, when using the document hierarchy, any insertString in the GapContent object invokes str.toCharArray(), that is implemented like this: p