@trust is an encapsulation method, not an escape

Tobias Pankrath via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 7 06:58:36 PST 2015


>> https://github.com/klickverbot/phobos/commit/db647f62cb5279ae42ad98665cd60cdcdb9b3dd5
>
> Nice, thanks for this work. One good guideline here is to 
> almost always let generic code rely on deduction instead of 
> ascribing safety attributes to it.
>
> Andrei

And making this work in functions that already marked @trusted 
and need to be, but should have some parts inferred is the hole 
point of this thread and the @trusted-misuse in phobos.


More information about the Digitalmars-d mailing list