Re: A possible readf int bug

2021-06-27 Thread Matilda via Digitalmars-d-learn
On Sunday, 27 June 2021 at 20:12:09 UTC, jfondren wrote: On Sunday, 27 June 2021 at 19:50:09 UTC, Matilda wrote: [...] This works with either readf line for me on v2.097.0. Try stracing your program. Okay, thank you. I'll try it out.

A possible readf int bug

2021-06-27 Thread Matilda via Digitalmars-d-learn
I'm trying to read from stdin and then print an integer value. This is how my code looks like: ```d import std.stdio; import std.conv; import std.string; void main() { writeln("Input your variant (1 - 10):"); int key; //readf(" %d", &key); //readf!" %d"(key); key = readln.st