Mercurial > vim
changeset 34012:291b4ea552eb
runtime(doc): Clarify that new() is not static
Commit: https://github.com/vim/vim/commit/4e28631f9127a79fad564c0e870ce4988922b5e2
Author: Ernie Rael <errael@raelity.com>
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 <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 24 Dec 2023 11:15:06 +0100 |
parents | 62d771d915fe |
children | 15d3f8eefaa3 |
files | runtime/doc/vim9class.txt |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/doc/vim9class.txt +++ b/runtime/doc/vim9class.txt @@ -343,8 +343,8 @@ underscore as the first character in the 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