Skip to content

Generic inheritance question #2806

Answered by tomlau10
jkopano asked this question in Q&A
Aug 18, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I don't think there is a way, because in LuaLS a class just 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

16.3 – Multiple Inheritance

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tomlau10
Comment options

Answer selected by jkopano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants