Hi,
On Sat, Dec 24, 2022 at 7:46 AM Yegappan Lakshmanan <[email protected]> wrote:
>
> 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}"
> enddef
> endclass
>
> var c = MyCar.new("abc")
> c.GetMake()
> c.make = "def"
> c.GetMake()
> -------------------------------------------------------------------------------------
>
> generates the below ASAN log:
>
A similar ASAN log is generated with the following script:
-------------------------------------------------------------------------------------
vim9script
class MyCar
this.make: string
def new(make_arg: string)
this.make = make_arg
enddef
def GetMake()
echomsg $"make = {this.make}"
enddef
def SetMake(new_make: string)
this.make = new_make
enddef
endclass
var c = MyCar.new("abc")
c.GetMake()
c.SetMake("def")
c.GetMake()
-------------------------------------------------------------------------------------
- Yegappan
--
--
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/CAAW7x7k-AKceW9SRq1ivB1S5X6z8eGbMA3Ch61hz1NzU4FbziQ%40mail.gmail.com.