[Issue 19752] dip1000 isn't @safe if struct contains a slice
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 19 20:52:26 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19752
Meta <monkeyworks12 at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |monkeyworks12 at hotmail.com
--- Comment #2 from Meta <monkeyworks12 at hotmail.com> ---
I believe this is because adding a slice member to Container makes it a type
with indirections, whereas it was not before. DIP1000 only applies to types
with indirections. If you were to add an int member to Container instead, the
code would still compile as adding an int member to Container does not make it
a type with indirections.
--
More information about the Digitalmars-d-bugs
mailing list