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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Mar 17 12:39:16 PDT 2017


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

Bolpat <qs.il.paperinik at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qs.il.paperinik at gmail.com

--- Comment #18 from Bolpat <qs.il.paperinik at gmail.com> ---
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.

--


More information about the Digitalmars-d-bugs mailing list