[Issue 19015] arr[i..i] = c doesn't lower to a.opIndexAssign(c, a.opSlice(i, j))
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 17 18:36:24 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=19015
Georgy Markov <ogion.art at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ogion.art at gmail.com
--- Comment #1 from Georgy Markov <ogion.art at gmail.com> ---
Works if opSlice is implemented as a template:
auto ref opSlice(size_t dim)(size_t start, size_t end) if (dim == 0)
According to reference, it should work as it is:
> If only one-dimensional slicing is desired, opSlice may be declared without the compile-time parameter.
--
More information about the Digitalmars-d-bugs
mailing list