Posted at

Nimで改行しない標準出力

More than 1 year has passed since last update.

stdout.write(もしくはwrite stdout)を使います。

stdout.write "input: "

let text = readLine stdin

echo "your input text ", text

$ nim c -r sample2.nim

input: foobar
your input text foobar