[Issue 14125] @trusted nested helper functions in std.file

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Feb 4 18:54:31 PST 2015


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

--- Comment #45 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Walter Bright from comment #44)
> I understand you want the ...safe code... to be checked for safety. Here's
> how to do it:
> 
>     @trusted join() {
>         @safe {
>             ... safe code ...
>         }
>         return cast(U) v;
>     }

That's beautiful. Too bad it doesn't work :o).

--


More information about the Digitalmars-d-bugs mailing list