On Thursday, August 31, 2023 at 2:40:37 AM UTC+10 Yegappan Lakshmanan wrote:

To summarize, we have the following ways to declare and control access to 
object and class member variables currently (without the changes from this 
PR):
vim9script class A # object member: read-only access this.val1 = 10 # 
object member: read/write access public this.val2 = 20 # object member: 
private (no access) this._val3 = 30 # class member: read-only access static 
val4 = 40 # class member: read/write access public static val5 = 50 # class 
member: private (no access) static _val6 = 60 endclass

Please implement the above.  Vim script should be simple so do not require 
getters. Vim script should help coders so require "public" to explicitly 
show when data might be externally changed.

Message ID: <vim/vim/pull/12932/[email protected]>

-- 
-- 
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/cbf2e646-81e9-420f-a218-81009e015100n%40googlegroups.com.

Raspunde prin e-mail lui