Skip to content

Commit 92feeaf

Browse files
authored
runtime(doc): add help tag multiple-constructors. (#13772)
Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 7e27411 commit 92feeaf

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

runtime/doc/tags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8686,6 +8686,7 @@ multilang mlang.txt /*multilang*
86868686
multilang-menus mlang.txt /*multilang-menus*
86878687
multilang-messages mlang.txt /*multilang-messages*
86888688
multilang-scripts mlang.txt /*multilang-scripts*
8689+
multiple-constructors vim9class.txt /*multiple-constructors*
86898690
myfiletypefile syntax.txt /*myfiletypefile*
86908691
myscriptsfile syntax.txt /*myscriptsfile*
86918692
mysql ft_sql.txt /*mysql*

runtime/doc/vim9class.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*vim9class.txt* For Vim version 9.0. Last change: 2023 Dec 24
1+
*vim9class.txt* For Vim version 9.0. Last change: 2023 Dec 25
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -212,6 +212,8 @@ the above class): >
212212
<
213213
Simplifying the new() method ~
214214
*new()* *constructor*
215+
See also |default-constructor| and |multiple-constructors|.
216+
215217
Many constructors take values for the object variables. Thus you very often
216218
see this pattern: >
217219
@@ -801,7 +803,7 @@ first.
801803

802804

803805
Multiple constructors ~
804-
806+
*multiple-constructors*
805807
Normally a class has just one new() constructor. In case you find that the
806808
constructor is often called with the same arguments you may want to simplify
807809
your code by putting those arguments into a second constructor method. For

0 commit comments

Comments
 (0)