[Issue 16255] std.algorithm.iteration.each on opApply doesn't support ref
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 10 20:12:00 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=16255
Ali Cehreli <acehreli at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |acehreli at yahoo.com
--- Comment #7 from Ali Cehreli <acehreli at yahoo.com> ---
(In reply to Basile-z from comment #6)
> Is this supposed to work now ?
>
>
> void main()
> {
> int[][] arr = void;
That is the problem. We can't use arr in any meaningful way because it already
has garbage number of garbage elements.
> arr.length = 10;
It reduces the length to 10 but all the elements are garbage.
--
More information about the Digitalmars-d-bugs
mailing list