www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6644] New: std.stdio write/writef(ln) are not trusted


           Summary: std.stdio write/writef(ln) are not  trusted
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: dmitry.olsh gmail.com

--- Comment #0 from Dmitry Olshansky <dmitry.olsh gmail.com> 2011-09-11
09:49:00 PDT ---
Surely  safe code should be able to write/read data via File.
Test case:

import std.stdio;

 safe void f()

dmd output:

Error: safe function 'f' cannot call system function 'writeln'

This is on dmd 2.055 release.

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 11 2011