https://issues.dlang.org/show_bug.cgi?id=15932
RazvanN <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |FIXED --- Comment #2 from RazvanN <[email protected]> --- If you annotate the functions with @safe then you get: test.d(9): Deprecation: reference to local variable `data` assigned to non-scope parameter `_data` calling `this` I think that having the compiler automatically slice your static arrays is actually quite nice as you have to type less. The fact that you can escape a pointer to an expired stack frame is something that @safe and scope should deal with. Still, in system code this should be perfectly fine. Closing this as WORKSFORME. --
