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

Jonathan M Davis <jmdavisp...@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisp...@gmx.com

--- Comment #7 from Jonathan M Davis <jmdavisp...@gmx.com> ---
> Also, slicing of static arrays should be considered @system, because unless 
> we implement scope properly, they will break @safe-ty.

And even then, they still have to be @system unless they're immediately passed
as a function argument to a parameter that's marked scope. The same goes for
taking the address of a local variable. Essentially, the two operations are
identical, save for the fact that slicing a static array also involves copying
the length.

--

Reply via email to