"Jonathan M Davis" <jmdavisp...@gmx.com> wrote in message news:mailman.1518.1352007101.5162.digitalmar...@puremagic.com... >I just thought that I should bring greater attention to > > http://d.puremagic.com/issues/show_bug.cgi?id=8838 > > As it stands, I think that the slicing static arrays being considered > @safe is > a major hole in SafeD's safety, and I think that it's one that many of us > aren't aware of. But there seems to be some resistance to outright making > the > slicing of static arrays @system within that bug report, and I recall > similar > resistance in the thread that prompted that bug report (unfortunately, I > don't > remember what thread it was - somewhere in D.Learn I think). >
Slicing static arrays on the stack is equivalent to taking the address of a local variable, which is already illegal in SafeD.