echo("What's your name? ")
var name: string = readLine(stdin)
echo("Hi, ", name, "!")
only to result in the following error:
greetings.nim(3, 28) Error: undeclared identifier: 'stdlin'
Process terminated with exit code 1
what am i missing?
Your example doesn't work for me either, but I get a different message (I'm using Linux though): Error: ambiguous identifier: 'stdin' -- use a qualifier. To fix this, I'm able to use system.stdin. Are you?
Edit: I just realized that this only happens when using the REPL, whoops
Error: ambiguous identifier: 'stdin' -- use a qualifier
That means you have defined stdin somewhere else.