echo("What's your name? ")
var name: string = readLine(stdin)
echo "Hi, ", name, "!"
I compile with:
nimrod c .\hello.nim
On Xubuntu (latest). The result is:
Error: invalid module name: '.hello'
What's up?? On Windows everything works as advertised.
On Linux \ is the escaping character. Try
nimrod c hello.nim
or
nimrod c ./hello.nim
also the .nim is completely optional. this works:
$ nimrod c hello
Oh well. Shame on me ;)
Hard to imagine I 50% of my work is on Linux.. still have a blind spot.