]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(doc): Improve the documentation for Vim9 classes (#13828)
authorAliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Sun, 7 Jan 2024 14:52:10 +0000 (17:52 +0300)
committerGitHub <noreply@github.com>
Sun, 7 Jan 2024 14:52:10 +0000 (15:52 +0100)
commitb21499537fb9fd0ff407e6113ac60ebd82058e2a
treeec185bc53a650a2b07cc8b3a6fd227618afcb3db
parent5d5cbb2b9ac526fb6fad2116e24a282affc45efe
runtime(doc): Improve the documentation for Vim9 classes (#13828)

* Emend textual typos
* Emend syntactic errors in examples
* Acknowledge no support for abstract static methods
* Acknowledge the non-ubiquity of instance qualification

"This" was never allowed in method declarations, e.g.:
    class A
        def this.M()
        enddef
    endclass

and, since patch 9.0.2167, "this" can no longer be used in field
declarations, e.g.:
    class B
        var this.f: string
    endclass

* Recognise abstract child classes
* Reword an ambiguous turn of phrase

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/vim9class.txt