0

I would like to know how to exit the console application in Nim.

Ducklett
  • 63
  • 5

1 Answers1

4

You can use the quit function from system module, like

quit(1) # where 1 is the error code
1.quit() # same as above 

or

"Error message".quit(0) # where 0 is the error code

Read more about the detail quit function or the shorthand quit function on nim doc

dotfelixb
  • 146
  • 1
  • 3