]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): Clarify that new() is not static
authorErnie Rael <errael@raelity.com>
Sun, 24 Dec 2023 10:03:31 +0000 (11:03 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 24 Dec 2023 10:03:31 +0000 (11:03 +0100)
closes: #13756

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/vim9class.txt

index d0225aec750c6bec9468dffe1074d556564cc12a..b71e95f42562886604313c7a73ecc3437c345ed7 100644 (file)
@@ -343,8 +343,8 @@ underscore as the first character in the method name: >
     endclass
 <
                                                        *E1370*
-Note that constructors cannot be declared as "static", because they always
-are.
+Note that constructors cannot be declared as "static". They are called like a
+static but execute as an object method; they have access to "this".
 
 To access the class methods and class variables of a super class in an
 extended class, the class name prefix should be used just as from anywhere