diff options
author | Miran <narimiran@disroot.org> | 2019-03-18 08:21:38 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-03-18 08:21:37 +0100 |
commit | afeca3d9feb31326c87543a1cce401ecaab0b24a (patch) | |
tree | 0df5f54cf5bf84342085e7e12cbdb77af19db7b1 /doc/manual.rst | |
parent | 9e28d52c2ff02d0808f2305c0107691ec3136129 (diff) | |
download | Nim-afeca3d9feb31326c87543a1cce401ecaab0b24a.tar.gz |
multi-methods need to be explicitly enabled (#10856)
* multi-methods need to be explicitly enabled * update changelog, manual and tutorial
Diffstat (limited to 'doc/manual.rst')
-rw-r--r-- | doc/manual.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/manual.rst b/doc/manual.rst index 09daf4a95..7ed7900e9 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -3716,6 +3716,9 @@ The ``[]`` subscript operator for arrays/openarrays/sequences can be overloaded. Multi-methods ============= +**Note:** Starting from Nim 0.20, to use multi-methods one must explicitly pass +``--multimethods:on`` when compiling. + Procedures always use static dispatch. Multi-methods use dynamic dispatch. For dynamic dispatch to work on an object it should be a reference type as well. @@ -6222,7 +6225,7 @@ Predicate Meaning =================== ===================================================== Predicates that share their name with a keyword have to be escaped with -backticks: `` `const` ``. +backticks. The ``alias`` and ``noalias`` predicates refer not only to the matching AST, but also to every other bound parameter; syntactically they need to occur after the ordinary AST predicates: |