Kay Ramme - Sun Germany - Hamburg wrote:
Michael, Stephan,
sorry for being so slow. Do I understand correctly, the suggestion is to
introduce a (Java like) string internalization feature (every string
value is exactly instantiated once)?
Yes, some (singleton) functionality
rtl::OUString intern(rtl::OUString const & arg)
that returns a string with the same content as arg and guarantees that
when intern is called twice with identical args and the lifetimes of the
returned strings overlap, then the returned strings are the same instance.
Whether such a facility is better (space, time, code quality) than
individual local solutions, and whether it can be implemented at all
(removing dead entries from the cache), is still open to debate, though.
-Stephan
Kay
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]