Re: Creating a child class instance doesn't invoke the parent class new() function

2023-01-15 Fir de Conversatie Christopher Plewright
On Monday, 16 January 2023 at 07:19:29 UTC+11 Bram Moolenaar wrote: The simplest would be that the parent constructor is always called first. However, it usually has arguments and those need to be passed somehow. Is there a language where this works nicely and we do it like that in Vim?

Re: Creating a child class instance doesn't invoke the parent class new() function

2023-01-15 Fir de Conversatie Bram Moolenaar
Yegappan wrote: > When creating an instance of a child class, the parent class new() > function is not invoked. How do we invoke the parent class new() > function from a child class new() function to perform some > initialization? At this moment you can't. The simplest is to move the initiali

Creating a child class instance doesn't invoke the parent class new() function

2023-01-14 Fir de Conversatie Yegappan Lakshmanan
Hi, When creating an instance of a child class, the parent class new() function is not invoked. How do we invoke the parent class new() function from a child class new() function to perform some initialization? Regards, Yegappan -- -- You received this message from the "vim_dev" maillist. Do