all OS functions should be "nothrow @trusted @nogc"
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jul 25 11:20:01 PDT 2017
On 7/25/17 2:14 PM, Andrei Alexandrescu wrote:
> On 07/25/2017 12:14 PM, Kagamin wrote:
>> While we're at it, check this:
>> https://github.com/dlang/druntime/blob/master/src/core/stdc/stdio.d#L1047
>
> That might be a mistake. Is fclose(f); getc(f); defined? -- Andrei
fclose is not @safe.
The charter of @safe (or @trusted in this case) is to assume valid
pointers for parameters.
-Steve
More information about the Digitalmars-d
mailing list