Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
September 11, 2014 [Issue 7444] Require [] for array copies too | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=7444 --- Comment #22 from Sobirari Muhomori <dfj1esp02@sneakemail.com> --- That's the reason for an unambiguous syntax a[*]=b[*]; -- |
August 24, 2018 [Issue 7444] Require [] for array copies too | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=7444 Peter Alexander <peter.alexander.au@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter.alexander.au@gmail.co | |m --- Comment #23 from Peter Alexander <peter.alexander.au@gmail.com> --- I just lost a bunch of time because of this issue (T[n] = e). I understand this is a breaking change. Is there perhaps a deprecation path to solving this? -- |
December 17, 2022 [Issue 7444] Require [] for array copies too | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=7444 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P4 -- |
July 19 [Issue 7444] Require [] for array copies too | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=7444 Nick Treleaven <nick@geany.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@geany.org --- Comment #24 from Nick Treleaven <nick@geany.org> --- I think `[]` should be required at least for assigning a single element to a static array, like it is for a dynamic array. Another issue is with an AA of static array key type: https://forum.dlang.org/post/dokvozlfivgerkwhupvs@forum.dlang.org // meant to create key "test" and copy slice as value lookup["test"] = dynArray[0 .. $]; // instead causes a missing key error as it becomes lookup["test"][0 .. $] = dynArray[0 .. $]; -- |
July 19 [Issue 7444] Require [] for array copies too | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=7444 --- Comment #25 from Nick Treleaven <nick@geany.org> --- > Another issue is with an AA of static array key type: Sorry, static array *value* type: string[3][string] lookup; string[] dynArray = ["d", "e", "f"]; -- |
Copyright © 1999-2021 by the D Language Foundation