[Issue 8471] std.stdio.readf should be @trusted

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Mar 18 00:37:11 PDT 2017


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

--- Comment #19 from Andrei Alexandrescu <andrei at erdani.com> ---
@Bolpat (In reply to Bolpat from comment #18)
> As Andrei pointed out, readf has its signature for historic reasons. Please
> check out my pull: https://github.com/dlang/phobos/pull/5247 If I'm correct,
> we can deprecate formattedRead and with it readf with pointers.
> 
> Tell me if I'm wrong, but there is no justification to make readf @trusted.
> It accesses a __gshared global and is not @safe for good reasons.

Using __gshared is not problematic because the reading primitives are
interlocked.

--


More information about the Digitalmars-d-bugs mailing list