Hi, On Mon, Aug 28, 2023 at 12:14 PM errael <[email protected]> wrote:
> When I build objmember, with no modifications, and run this I see two > problems > > 1. Able to access private static > 2. Compile error when trying to write public static > > I am able to reproduce the second issue even using a two months old image. It looks like writing to a class member from a def function never worked. Regards, Yegappan > > > Here's a test > > vim9script > class C > this._mpfoo: number > static _spfoo: number > this.mfoo: number > static sfoo: number > > def new() > this._mpfoo = 1 > _spfoo = 2 > this.mfoo = 201 > sfoo = 202 > enddef > endclass > > def F() > var o = C.new() > #echo "_mpfoo" o._mpfoo > echo "_spfoo" C._spfoo ### <<<<<<<<< able to access private static > echo "mfoo" o.mfoo > echo "sfoo" C.sfoo > > o.mfoo = 301 > #C.sfoo = 302 ### <<<<<<<<< compilation fails > echo "mfoo" o.mfoo > echo "sfoo" C.sfoo > enddef > F() > finish > > > -- -- 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/CAAW7x7nJj8deLHk0RYUJS02m%2B1N9uysnxSZqUnZT5p0eiAgkJg%40mail.gmail.com.
