September 09, 2014 [Issue 13443] New: stdin/stdout/stderr should be accessible from @safe code | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: thecybershadow@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. -- |
Copyright © 1999-2021 by the D Language Foundation