[Issue 16218] New: Windows std.file.readImpl should be marked @system
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jun 29 03:30:55 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16218
Issue ID: 16218
Summary: Windows std.file.readImpl should be marked @system
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Keywords: safe
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: schveiguy at yahoo.com
For some reason, the function is split into 90% islands of @trusted code, there
is very little actual @safe code in there. In addition, the function shouldn't
actually be @trusted, as it takes a null-terminated string. Better to mark it
@system, and mark the uses of it @trusted (or mark the whole thing @trusted,
and change the API to take a string array).
--
More information about the Digitalmars-d-bugs
mailing list