[Issue 19752] dip1000 isn't @safe if struct contains a slice

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 4 08:37:04 UTC 2020


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

--- Comment #5 from Walter Bright <bugzilla at digitalmars.com> ---
The key to understanding perplexing examples is to ruthlessly rewrite them in
terms of `int*` and plain functions. Get rid of slices, this references,
structs, member functions, etc. which do nothing but obfuscate what is
happening, as they are just fancier versions of int* and functions.

--


More information about the Digitalmars-d-bugs mailing list