@safe console input?
XavierAP via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Mar 9 16:42:35 PST 2017
On Thursday, 9 March 2017 at 23:55:35 UTC, Adam D. Ruppe wrote:
> Just wrap it in a @trusted function.
I knew this answer already of course ;) but I take it as implying
that there is no other way.
Actually I really wonder why std.stdio.readln() itself is not
flagged @trusted. I wouldn't think such a function skips any
buffer bounds checking, even in -release -- having to wait for
user input anyway performance is no issue.
More information about the Digitalmars-d-learn
mailing list