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: nob...@puremagic.com
          Reporter: thecybersha...@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.

--

Reply via email to