[Issue 24754] cannot take address of a member array in a ref foreach

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 12 22:36:25 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24754

--- Comment #6 from Luís Ferreira <contact at lsferreira.net> ---
> > However, if Foo.foo is changed to `int[1] foo;`, it still won't error and it should

Also the code you presented has a different type, even though trivially valid
if you don't escape from within the function, which you do, so it doesn't apply
to this particular issue.

---

For the frontend folks, just ease this from DIP1000 preview flag, it doesn't
make sense to be within the flag.

--


More information about the Digitalmars-d-bugs mailing list