[Issue 1654] Array concatenation should result in mutable or invariant depending on usage

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 27 06:57:06 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=1654



--- Comment #25 from bearophile_hugs at eml.cc 2013-04-27 06:57:04 PDT ---
(In reply to comment #24)

> In this case I think a little amount of magic is acceptable (if it's
> necessary).

because in my opinion the gain from accepting code like this:


void main() {
    string s1 = "abc";
    char[] s2 = s1 ~ s1;
}


outweighs the disadvantages caused by an eventual small amount of magic.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list