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?
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
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