Why hide a trusted function as safe?
Johannes Pfau via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jul 26 06:28:02 PDT 2015
Am Sun, 26 Jul 2015 13:11:51 +0000
schrieb "Dicebot" <public at dicebot.lv>:
> I remember doing something like that in druntime because of
> objects - you can't override @safe method prototype with @trusted
> one.
>
That's probably related to the fact that safe and trusted functions
have different mangled names. This also means that going from trusted to
safe later on causes ABI breakage.
More information about the Digitalmars-d-learn
mailing list