[Issue 18106] @nogc: yields a wrong error where @nogc on each definition does not
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 20 15:47:27 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=18106
--- Comment #4 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
yes, `struct` (and `class`, i believe) isn't affected. outer @nogc for *struct*
(and class) doesn't change member attrs, only inner @nogc does. this is the
logic compiler applies. ;-)
i'm still not sure if `@nogc` should do the same thing as `@nogc:` or not, tho.
it prolly should, but let's wait for some compiler dev to clarify the things.
--
More information about the Digitalmars-d-bugs
mailing list