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.55k stars 1.47k forks source link

Module nimscript, docu bug, ScriptMode = enum #6065

Closed StefanSalewski closed 6 years ago

StefanSalewski commented 7 years ago

https://nim-lang.org/docs/nimscript.html

ScriptMode = enum

That enum is pure! Not visible from docs, and hard to guess as main dev generally do not like pure enums. I tried to use "mode = Whatis" which fails. Should be "mode = ScriptMode.Whatis" I guess, but have not tested yet.

Araq commented 6 years ago

Well mode = Whatif now works and the two different enum kinds are to be merged. So I think it's fair to close this one.