[Issue 14682] [REG2.037] Incorrect interpretation of ~ []
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jun 10 23:40:01 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14682
--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> ---
Thanks for the clarification.
Do you think it should be fixed?
Any way you turn it, the behavior might be unexpected:
auto foo = ["foo"] ~ ['x'];
-- or --
auto foo = ["foo"] ~ ["x"];
Remove the only element in the array, and something surprising may happen,
depending on what you expect.
--
More information about the Digitalmars-d-bugs
mailing list