Deprecate selfExe (#19660)

* Deprecate selfExe Nimscript

* Deprecate selfExe Nimscript
This commit is contained in:
Juan Carlos
2022-03-31 16:06:13 -03:00
committed by GitHub
parent eae29e8eaf
commit 49844415ce
2 changed files with 3 additions and 2 deletions

View File

@@ -50,6 +50,8 @@ becomes an alias for `addr`.
- Remove deprecated `osproc.poDemon`, symbol with typo.
- Deprecated `selfExe` for Nimscript.
## Language changes

View File

@@ -136,9 +136,8 @@ proc dirExists*(dir: string): bool {.
## Checks if the directory `dir` exists.
builtin
proc selfExe*(): string =
proc selfExe*(): string {.deprecated: "Deprecated since v1.7; Use getCurrentCompilerExe".} =
## Returns the currently running nim or nimble executable.
# TODO: consider making this as deprecated alias of `getCurrentCompilerExe`
builtin
proc toExe*(filename: string): string =