diff options
author | Juan M Gómez <info@jmgomez.me> | 2023-10-11 07:28:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 08:28:00 +0200 |
commit | bf72d87f249221ed6623321f3cca0de9b35e0e36 (patch) | |
tree | 45c024dd183eb706e47dfb34ca8b120cca90b215 /doc | |
parent | 81b2ae747e307f4ab171d3b62a0e6ea8b6a81d3d (diff) | |
download | Nim-bf72d87f249221ed6623321f3cca0de9b35e0e36.tar.gz |
adds support for noDecl in constructor (#22811)
Notice the test wouldnt link before
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual_experimental.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual_experimental.md b/doc/manual_experimental.md index 249f9367b..4bafd408f 100644 --- a/doc/manual_experimental.md +++ b/doc/manual_experimental.md @@ -2345,7 +2345,7 @@ proc makeFoo(x: int32): Foo {.constructor.} = result.x = x ``` -It forward declares the constructor in the type definition. When the constructor has parameters, it also generates a default constructor. +It forward declares the constructor in the type definition. When the constructor has parameters, it also generates a default constructor. One can avoid this behaviour by using `noDecl` in a default constructor. Like `virtual`, `constructor` also supports a syntax that allows to express C++ constraints. |