Problem with Multi-Level inheritance #1635
Replies: 4 comments
-
Posted at 2023-02-26 by llakie This does work, but I really would like to use class notation.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-02-27 by @gfwilliams This was actually fixed just last week! espruino/Espruino@435b4da If you install a 'cutting edge' build it will hopefully be fixed! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-02-27 by llakie Works like a charm. Thanks Gordon. What a coincidence ;) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-02-28 by @gfwilliams :) Yes! It's odd - someone else picked up on it last week which is why I fixed it, but otherwise the bug report itself is over 4 years old! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-02-26 by llakie
Hi, I have a problem, which could be boiled down to the code snippet given above.
If I run it on my Espruino WiFi (2v16), I get a recursion error, since if class B tries to call the constructor of A, it calls its own constructor.
Does anyone has a workaround for this problem? I already tried passing different argument lists into the constructors to make them distinguishable (in C++ mapping terms at least). Without any luck. I can easily instantiate B or A, but not C.
I would really appreaciate your help. Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions