samspade
Member
The manual says that: "Structs created [with a constructor] will also support single level inheritance, ie: you can create a struct using a function that inherits the data from another constructor function."
This would seem to imply that a struct cannot inherit from a struct that inherits from a struct However, in code this definitely works. Struct C can inherit from B which inherits from A and have the qualities of A.
Does anyone know if this multi-level inheritance is intended or undocumented behavior?
(part of me wonders if the manual doesn't mean single inheritance or if single level inheritance means single inheritance in certain places but everything I'm familiar with, which is admittedly not much, draws a distinction between single level and multilevel inheritance and single and multiple inheritance where the first refers to how many layers you can have and the second refers to how many direct parents you can have)
This would seem to imply that a struct cannot inherit from a struct that inherits from a struct However, in code this definitely works. Struct C can inherit from B which inherits from A and have the qualities of A.
Does anyone know if this multi-level inheritance is intended or undocumented behavior?
(part of me wonders if the manual doesn't mean single inheritance or if single level inheritance means single inheritance in certain places but everything I'm familiar with, which is admittedly not much, draws a distinction between single level and multilevel inheritance and single and multiple inheritance where the first refers to how many layers you can have and the second refers to how many direct parents you can have)
Last edited: