summary refs log tree commit diff stats
path: root/changelog.md
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-02-02 12:53:38 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-02-02 12:53:38 +0100
commit212457f5e01d1c52db590da3b9d7f8dd538d9269 (patch)
tree19a0ba8ec93120b1fd2f77dbd44a1867211b3f23 /changelog.md
parent1b22a3b346cc1e4260cc92b0d55e667543e4acc4 (diff)
downloadNim-212457f5e01d1c52db590da3b9d7f8dd538d9269.tar.gz
the .deprecated pragma for procs now supports a user-definable deprecation message
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md9
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()
+```