@safe console input?
XavierAP via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Mar 9 14:53:59 PST 2017
I was surprised by a compiler message saying that
std.stdio.readln() (and specifically the overload without
arguments) is not safe but @system.
Actually I was using it only to pause execution until the user
presses Enter. So how else could I do this within a @safe
environment?
And more generally, is it possible to get user console input in a
@safe way?
More information about the Digitalmars-d-learn
mailing list