Undefine paramCount & paramStr in nimscript.nim for *.nims (#12860)

* Remove `paramStr` and `paramCount` from implicitly imported nimscript.nim
* Update changelog.md
* Update stable nimble commit hash

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
Neelesh Chandola 2020-04-27 22:46:40 +05:30 • committed by GitHub
commit d38853c504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 14 deletions

View file

@ -2707,7 +2707,23 @@ when defined(nimdoc):
## else:
## # Do something else!
elif defined(nintendoswitch) or weirdTarget:
elif defined(nimscript):
proc paramStr*(i: int): string =
## Retrieves the ``i``'th command line parameter.
discard
proc paramCount*(): int =
## Retrieves the number of command line parameters.
discard
elif defined(js):
proc paramStr*(i: int): TaintedString {.tags: [ReadIOEffect].} =
raise newException(OSError, "paramStr is not implemented on JavaScript")
proc paramCount*(): int {.tags: [ReadIOEffect].} =
raise newException(OSError, "paramCount is not implemented on JavaScript")
elif defined(nintendoswitch):
proc paramStr*(i: int): TaintedString {.tags: [ReadIOEffect].} =
raise newException(OSError, "paramStr is not implemented on Nintendo Switch")