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?

Reply via email to