File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8686,6 +8686,7 @@ multilang mlang.txt /*multilang*
86868686multilang-menus mlang.txt /*multilang-menus*
86878687multilang-messages mlang.txt /*multilang-messages*
86888688multilang-scripts mlang.txt /*multilang-scripts*
8689+ multiple-constructors vim9class.txt /*multiple-constructors*
86898690myfiletypefile syntax.txt /*myfiletypefile*
86908691myscriptsfile syntax.txt /*myscriptsfile*
86918692mysql ft_sql.txt /*mysql*
Original file line number Diff line number Diff line change 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<
213213Simplifying the new() method ~
214214 *new()* *constructor*
215+ See also | default-constructor | and | multiple-constructors | .
216+
215217Many constructors take values for the object variables. Thus you very often
216218see this pattern: >
217219
@@ -801,7 +803,7 @@ first.
801803
802804
803805Multiple constructors ~
804-
806+ *multiple-constructors*
805807Normally a class has just one new() constructor. In case you find that the
806808constructor is often called with the same arguments you may want to simplify
807809your code by putting those arguments into a second constructor method. For
You can’t perform that action at this time.
0 commit comments