the .deprecated pragma for procs now supports a user-definable deprecation message

This commit is contained in:
Andreas Rumpf 2018-02-02 12:53:38 +01:00
commit 212457f5e0
5 changed files with 27 additions and 4 deletions

View file

@ -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()
```