runtime(doc): Clarify that new() is not static
Commit:
https://github.com/vim/vim/commit/4e28631f9127a79fad564c0e870ce4988922b5e2
Author: Ernie Rael <[email protected]>
Date: Sun Dec 24 11:03:31 2023 +0100
runtime(doc): Clarify that new() is not static
closes: https://github.com/vim/vim/issues/13756
Signed-off-by: Ernie Rael <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/doc/vim9class.txt b/runtime/doc/vim9class.txt
index d0225aec7..b71e95f42 100644
--- a/runtime/doc/vim9class.txt
+++ b/runtime/doc/vim9class.txt
@@ -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
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1rHLVi-00BFhW-G7%40256bit.org.