diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-02-02 12:53:38 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-02-02 12:53:38 +0100 |
commit | 212457f5e01d1c52db590da3b9d7f8dd538d9269 (patch) | |
tree | 19a0ba8ec93120b1fd2f77dbd44a1867211b3f23 /changelog.md | |
parent | 1b22a3b346cc1e4260cc92b0d55e667543e4acc4 (diff) | |
download | Nim-212457f5e01d1c52db590da3b9d7f8dd538d9269.tar.gz |
the .deprecated pragma for procs now supports a user-definable deprecation message
Diffstat (limited to 'changelog.md')
-rw-r--r-- | changelog.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index c2211b510..a3f16738f 100644 --- a/changelog.md +++ b/changelog.md @@ -238,3 +238,12 @@ styledEcho "Red on Green.", resetStyle - Type inference for generic type parameters involving numeric types is now symetric. See [Generic type inference for numeric types](https://nim-lang.org/docs/manual.html#generics-generic-type-inference-fornumeric-types) for more information. +- The ``deprecated`` pragma now supports a user-definable warning message for procs. + +```nim + +proc bar {.deprecated: "use foo instead".} = + return + +bar() +``` |