nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.6k stars 1.47k forks source link

Interpreter cannot re-declare bad procedure #1974

Closed refi64 closed 9 years ago

refi64 commented 9 years ago
ryan@DevPC-LX:~/stuff/mk64$ nim i
/etc/nim.cfg(45, 2) Hint: added path: '/home/ryan/.babel/pkgs/' [Path]
/etc/nim.cfg(46, 2) Hint: added path: '/home/ryan/.nimble/pkgs/fcp-0.1.0' [Path]
/etc/nim.cfg(46, 2) Hint: added path: '/home/ryan/.nimble/pkgs/lua-1.0' [Path]
/etc/nim.cfg(46, 2) Hint: added path: '/home/ryan/.nimble/pkgs/argument_parser-0.2.0' [Path]
/etc/nim.cfg(46, 2) Hint: added path: '/home/ryan/.nimble/pkgs/babel-0.2.0' [Path]
/etc/nim.cfg(46, 2) Hint: added path: '/home/ryan/.nimble/pkgs/commandeer-0.3.0' [Path]
/etc/nim.cfg(46, 2) Hint: added path: '/home/ryan/.nimble/pkgs/aporia-0.2.0' [Path]
/etc/nim.cfg(46, 2) Hint: added path: '/home/ryan/.nimble/pkgs/nimble-0.4.0' [Path]
/etc/nim.cfg(46, 2) Hint: added path: '/home/ryan/.nimble/pkgs/nake-1.3' [Path]
/etc/nim.cfg(46, 2) Hint: added path: '/home/ryan/.nimble/pkgs/gtk2-1.0' [Path]
/etc/nim.cfg(46, 2) Hint: added path: '/home/ryan/.nimble/pkgs/NimBorg-0.0.2' [Path]
/etc/nim.cfg(46, 2) Hint: added path: '/home/ryan/.nimble/pkgs/' [Path]
Hint: used config file '/etc/nim.cfg' [Conf]
Hint: used config file '/home/ryan/.config/nim.cfg' [Conf]
Hint: system [Processing]
lib/nim/system/ansi_c.nim(38, 4) Error: cannot 'importc' variable at compile time
lib/nim/system/ansi_c.nim(39, 4) Error: cannot 'importc' variable at compile time
lib/nim/system/ansi_c.nim(40, 4) Error: cannot 'importc' variable at compile time
lib/nim/system/ansi_c.nim(151, 10) Error: cannot 'importc' variable at compile time
lib/nim/system.nim(2281, 6) Error: cannot 'importc' variable at compile time
lib/nim/system.nim(2283, 6) Error: cannot 'importc' variable at compile time
lib/nim/system.nim(2285, 6) Error: cannot 'importc' variable at compile time
Hint: stdin [Processing]
>>> proc f(a: int = 0) = return a
stdin(1, 21) Error: no return type declared
>>> # oops
>>> proc f(a: int = 0): int = return a
>>> f 1
stdin(1, 28) Error: internal error: cannot generate VM code for a
Traceback from system (most recent call last)
ryan@DevPC-LX:~/stuff/mk64$ 
Araq commented 9 years ago

nim i is not supported anymore.

dom96 commented 9 years ago

What do you mean it's not supported? Why?