[Issue 13443] New: stdin/stdout/stderr should be accessible from @safe code

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 9 03:33:26 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13443

          Issue ID: 13443
           Summary: stdin/stdout/stderr should be accessible from @safe
                    code
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: safe
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody at puremagic.com
          Reporter: thecybershadow at gmail.com

Currently, the standard File variables in std.stdio are not accessible from
@safe code, because they are declared as __gshared.

>From looking at the code, it looks like they are indeed not thread-safe - the
reference counter is not incremented/decremented atomically.

--


More information about the Digitalmars-d-bugs mailing list