[Issue 15932] Get rid of the implicit slicing of static arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 25 10:57:31 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=15932
kdevel <kdevel at vogtner.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kdevel at vogtner.de
--- Comment #8 from kdevel <kdevel at vogtner.de> ---
(In reply to Nick Treleaven from comment #7)
> https://forum.dlang.org/post/dokvozlfivgerkwhupvs@forum.dlang.org
| string[3][string] lookup;
| string[] dynArray = ["d", "e", "f"];
| lookup["test"] = dynArray[0..$];
|
| This fails at runtime with RangeError. But if I change that last line to:
|
| lookup["test"] = dynArray[0..3];
|
| then it works.
--
More information about the Digitalmars-d-bugs
mailing list