On Sunday, 25 December 2022 at 02:34:35 UTC+11 Doug Kearns wrote:
> On Mon, 19 Dec 2022 at 00:33, Bram Moolenaar wrote:
>
>>
>> One thing I'm not yet sure about is the declaration. Currently it works
>> like this:
>>
>> this.name: string
>> this.gender: Gender
>>
>> Notice
On Saturday, 24 December 2022 at 04:40:15 UTC+11 bfrg wrote:
> > No, I prefer 'this' over 'self'. I was considering if its possible to
> go without any keyword for it. For example, these days we also have
> syntax highlighting which can give a different color for member variables
> and
Hi,
With the latest Vim version (patch 9.0.1093), when sourcing the
following script:
--
vim9script
class MyCar
this.make: string
def new(make_arg: string)
this.make = make_arg
enddef
def GetMake()
Patch 9.0.1093
Problem:Using freed memory of object member. (Yegappan Lakshmanan)
Solution: Make a copy of the object member when getting it.
Files: src/vim9execute.c, src/testdir/test_vim9_class.vim
*** ../vim-9.0.1092/src/vim9execute.c 2022-12-18 21:42:49.014716925 +
---
Hi,
On Sat, Dec 24, 2022 at 7:46 AM Yegappan Lakshmanan wrote:
>
> Hi,
>
> Sourcing the following script:
>
> -
> vim9script
>
> class MyCar
> public this.make: string
>
> def new(make_arg: string)
>
Hi,
Sourcing the following script:
-
vim9script
class MyCar
public this.make: string
def new(make_arg: string)
this.make = make_arg
enddef
def GetMake()
echomsg $"make = {this.make}"
On Mon, 19 Dec 2022 at 00:33, Bram Moolenaar wrote:
>
> One thing I'm not yet sure about is the declaration. Currently it works
> like this:
>
> this.name: string
> this.gender: Gender
>
> Notice that there is no "var" keyword. It's not needed to recognize the
> declaration. I
Glad to hear that. May the Christmas and end of year celebrations be the
best and peaceful for you Bram. And all of you who contribute to Vim
Improved.
N i c o l a s
Le jeudi 22 décembre 2022 à 14:11:04 UTC+1, Bram Moolenaar a écrit :
>
> > Good evening everyone and Bram in particular.
> > I