www.digitalmars.com         C & C++   DMDScript  

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

http://d.puremagic.com/issues/show_bug.cgi?id=6644

           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



09:49:00 PDT ---
Surely  safe code should be able to write/read data via File.
Test case:

import std.stdio;

 safe void f()
{
    writeln("Hello!");
}

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