[Issue 12857] Don't allow declaring @system function inside @safe block

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jun 5 12:38:16 PDT 2014


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

Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com

--- Comment #5 from Jonathan M Davis <jmdavisProg at gmx.com> ---
Actually, I really don't see a problem here. The unsafe operation is in main.
_That_ is where the @system function is called. Sure, the fact that func
returns auto makes it harder to see, but if you marked main with @safe, then it
would be clear, since the compiler would give then an error when fp was called.

--


More information about the Digitalmars-d-bugs mailing list