Discussion Thread: DIP 1028--Make @safe the Default--Final Review

Kagamin spam at here.lot
Thu Mar 26 06:49:25 UTC 2020


On Thursday, 26 March 2020 at 05:43:41 UTC, Walter Bright wrote:
> https://github.com/dlang/druntime/blob/master/src/core/stdc/limits.d#L29
>
> declares everything as @trusted, yet should be @safe. It isn't 
> technically broken, but it isn't right.

That one should be @system, like any other C header. @safe is 
supposed to be checked by the compiler, so C headers can't 
possibly have @safe declarations.


More information about the Digitalmars-d mailing list