patch 9.0.1950: Vim9: error codes spread out
Problem: Vim9: error codes spread out
Solution: group them together and reserve 100
more for future use
Reserve 100 error codes for future enhancements to the Vim9 class
support
closes: #13207
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
diff --git a/runtime/doc/vim9class.txt b/runtime/doc/vim9class.txt
index 7b9f8b4..5cbdc72 100644
--- a/runtime/doc/vim9class.txt
+++ b/runtime/doc/vim9class.txt
@@ -150,7 +150,7 @@
A object variable cannot be accessed using the class name.
Private variables ~
- *E1332* *E1333*
+ *private-variable* *E1332* *E1333*
On the other hand, if you do not want the object variables to be read directly,
you can make them private. This is done by prefixing an underscore to the
name: >
@@ -182,7 +182,7 @@
enddef
<
Private methods ~
- *E1366*
+ *private-method* *E1366*
If you want object methods to be accessible only from other methods of the
same class and not used from outside the class, then you can make them
private. This is done by prefixing the method name with an underscore: >
@@ -203,7 +203,7 @@
a._Foo()
<
Simplifying the new() method ~
-
+ *new()* *constructor*
Many constructors take values for the object variables. Thus you very often
see this pattern: >
@@ -651,7 +651,7 @@
Default constructor ~
-
+ *default-constructor*
In case you define a class without a new() method, one will be automatically
defined. This default constructor will have arguments for all the object
variables, in the order they were specified. Thus if your class looks like: >