www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16218] New: Windows std.file.readImpl should be marked system


          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 puremagic.com
          Reporter: schveiguy 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).

Jun 29 2016