summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorErnie Rael <errael@raelity.com>2023-12-24 11:03:31 +0100
committerChristian Brabandt <cb@256bit.org>2023-12-24 11:03:31 +0100
commit4e28631f9127a79fad564c0e870ce4988922b5e2 (patch)
tree8b63151f4a4717d100b326bb19bd25699c7755a0 /runtime
parent49cdd629a39d7e40e7349e65cb177e2442871a04 (diff)
runtime(doc): Clarify that new() is not static
closes: #13756 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/vim9class.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/vim9class.txt b/runtime/doc/vim9class.txt
index d0225aec75..b71e95f425 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