Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 03/20/2012 03:29 PM, Caolán McNamara wrote:
On Tue, 2012-03-20 at 15:20 +0100, Lubos Lunak wrote:
On Tuesday 20 of March 2012, Caolán McNamara wrote:
On Mon, 2012-03-19 at 13:39 +0100, Stephan Bergmann wrote:
(And even if immutable classes are
generally also a good idea in C++, esp. in combination with
multi-threading, the mutable rtl::OUString::operator= spoils this,
anyway.)

And the += operator irritates me.

  Before I start experimenting with more stuff in OUString that might look a
bit like operator+= , what exactly is so irritating about operator= or
operator+= in OUString and why?

It's just that if OUString was supposed to be immutable, then a
foo += bar; "feels wrong" to me in some vague way that, I guess
bizarrely, foo = foo + bar doesn't. *shrug*

To me, both look equally wrong if OUString is considered immutable, and equally OK if it isn't.

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.