This simple program seems to just hang. I am probably missing something. Any help is appreciated. I am using Linux with DMD. Program compiles fine, but when enter a string & press enter, the programs seems to wait forever without returning.

import std.stdio;

void main()
{
        
        string firstName;
        readf("    %s\n", &firstName);
        writeln(firstName);
        
}


Thankyou
Venkat

Reply via email to