@trusted AKA most useless statement ever

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 25 08:20:47 PST 2016


On Friday, 25 November 2016 at 16:03:27 UTC, Andrei Alexandrescu 
wrote:
> Hmmm... ok, that would work by means of the convention "@safe + 
> no implementation really means trusted". Not too convenient I'd 
> say. -- andrei

It works today, though. The compiler will allow you to put @safe 
with no body and treat it exactly as if it were @trusted.

The only difference between @safe and @trusted in this sense is 
the mangled name.


More information about the Digitalmars-d mailing list