summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorerrael <errael@raelity.com>2023-12-27 10:07:09 -0800
committerGitHub <noreply@github.com>2023-12-27 19:07:09 +0100
commit92feeaffc291d3247fd7c591c5ee4ec1b6c957ec (patch)
treee9f83baedd8385f7f116d1fed8ea47b19950ca4d /runtime
parent7e27411007378e005339ef37503697ae7e183da1 (diff)
runtime(doc): add help tag multiple-constructors. (#13772)
Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/tags1
-rw-r--r--runtime/doc/vim9class.txt6
2 files changed, 5 insertions, 2 deletions
diff --git a/runtime/doc/tags b/runtime/doc/tags
index ad92fcdfe6..f5c2c3a916 100644
--- a/runtime/doc/tags
+++ b/runtime/doc/tags
@@ -8686,6 +8686,7 @@ multilang mlang.txt /*multilang*
multilang-menus mlang.txt /*multilang-menus*
multilang-messages mlang.txt /*multilang-messages*
multilang-scripts mlang.txt /*multilang-scripts*
+multiple-constructors vim9class.txt /*multiple-constructors*
myfiletypefile syntax.txt /*myfiletypefile*
myscriptsfile syntax.txt /*myscriptsfile*
mysql ft_sql.txt /*mysql*
diff --git a/runtime/doc/vim9class.txt b/runtime/doc/vim9class.txt
index b71e95f425..a7ba2cd286 100644
--- a/runtime/doc/vim9class.txt
+++ b/runtime/doc/vim9class.txt
@@ -1,4 +1,4 @@
-*vim9class.txt* For Vim version 9.0. Last change: 2023 Dec 24
+*vim9class.txt* For Vim version 9.0. Last change: 2023 Dec 25
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -212,6 +212,8 @@ the above class): >
<
Simplifying the new() method ~
*new()* *constructor*
+See also |default-constructor| and |multiple-constructors|.
+
Many constructors take values for the object variables. Thus you very often
see this pattern: >
@@ -801,7 +803,7 @@ first.
Multiple constructors ~
-
+ *multiple-constructors*
Normally a class has just one new() constructor. In case you find that the
constructor is often called with the same arguments you may want to simplify
your code by putting those arguments into a second constructor method. For