Slicing static arrays should be @system

Jonathan M Davis jmdavisProg at gmx.com
Sat Nov 3 22:58:02 PDT 2012


On Sunday, November 04, 2012 06:48:15 Jakob Ovrum wrote:
> So what do we do about all these related issues?

I think that anything that the compiler can't absolutely gurantee is @safe 
must be @system. If that's annoying in some places, then that's life, because 
we can't compromise on SafeD just because a few things that we use a lot can't 
be @safe. Now, if we can make further improvements that make it so that the 
compiler _can_ determine that something is actually @safe when before it 
couldn't, then that's great. So, in at least some cases, compiler improvements 
could be used to reduce the annoyance factor, but I don't think that we can 
compromise on this.

- Jonathan M Davis


More information about the Digitalmars-d mailing list