← Back to index
|
Original Bugzilla link
Bug 16535 – writeln("a") is safe, stdout.writeln("a") is not
Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-09-24T16:09:09Z
Last change time
2024-12-01T16:27:55Z
Keywords
safe
Assigned to
No Owner
Creator
Andrei Alexandrescu
Depends on
17658
See also
https://issues.dlang.org/show_bug.cgi?id=15768
Moved to GitHub: phobos#10200 →
Comments
Comment #0
by andrei — 2016-09-24T16:09:09Z
There must have been some divergence in the source code somewhere. The global should forward to the member and both should be safe.
Comment #1
by jack — 2016-09-25T13:03:54Z
Currently, stdout.writeln("a") should be unsafe. This is another example of the root cause of both
https://issues.dlang.org/show_bug.cgi?id=15768
and
https://issues.dlang.org/show_bug.cgi?id=13727
The root cause being that large parts of std.stdio are not, in reality, memory safe and are still marked as @trusted.
Comment #2
by robert.schadek — 2024-12-01T16:27:55Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/phobos/issues/10200
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB