dlangBugzillaToGithub / migration_test

0 stars 0 forks source link

writeln("a") is safe, stdout.writeln("a") is not #501

Open dlangBugzillaToGithub opened 8 years ago

dlangBugzillaToGithub commented 8 years ago

andrei (andralex) reported this on 2016-09-24T16:09:09Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=16535

CC List

Description

There must have been some divergence in the source code somewhere. The global should forward to the member and both should be safe.
dlangBugzillaToGithub commented 8 years ago

jack commented on 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.