Generic inheritance question #2806
Answered
by
tomlau10
jkopano
asked this question in
General Questions
|
Hello, ---@Generic L ... Is what im thinking about but of course it does not work that way, |
Answered by
tomlau10
Aug 19, 2024
Replies: 1 comment 1 reply
|
I don't think there is a way, because in LuaLS a https://www.lua.org/pil/16.3.html
|
1 reply
Answer selected by
jkopano
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think there is a way, because in LuaLS a
classjust a type container, and it can have multiple inheritance. So there is no single superclass for any class. 😕 As for Lua itself, it is a dynamic typed language, and we often call it duck typing.https://www.lua.org/pil/16.3.html