[Issue 14125] @trusted nested helper functions in std.file
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Feb 4 20:09:01 PST 2015
https://issues.dlang.org/show_bug.cgi?id=14125
--- Comment #50 from Zach the Mystic <reachzach at gmail.com> ---
(In reply to Zach the Mystic from comment #48)
> I think it would be funny if a @trusted function with fewer than two
> statements was automatically rejected by the compiler. Since an
> unverifiable, but @safe operation requires two actions, one to dive into
> unsafe territory, and a second one to dive back out, any sound use of
> @trusted *must* have two or more statements. Destroy! :-)
I'm kidding, but unfortunately, it does seem like @trusted's purpose is never
going to be easily communicated. Maybe something in the documentation saying
that a @trusted function must have more than one action to be used correctly?
--
More information about the Digitalmars-d-bugs
mailing list