3 ms·
In the LPMud LPC language objects could inherit from multiple other objects, so they could combine behaviors. I haven’t really seen that in other languages.
by tinus_hn 5y ago
In the LPMud LPC language objects could inherit from multiple other objects, so they could combine behaviors. I haven’t really seen that in other languages.
- shagie 5y agoThe "about inheritance in LPC" - https://www.mars.org/home/rob/docs/IntermediateLPC/chapter6.html https://www.mars.org/home/rob/docs/IntermediateLPC/chapter6.... and a bit about multiple inheritance in LPC - http://graphcomp.com/info/mud/mudos/lpc/constructs/inherit.html http://graphcomp.com/info/mud/mudos/lpc/constructs/inherit.h... And another bit - http://www.geas.de/tutorial/lpc_57.html http://www.geas.de/tutorial/lpc_57.html As to seeing it in other languages... this gets into a mixing - https://en.wikipedia.org/wiki/Mixin https://en.wikipedia.org/wiki/Mixin An example of that in Scala - https://docs.scala-lang.org/tour/mixin-class-composition.html https://docs.scala-lang.org/tour/mixin-class-composition.htm... or https://www.baeldung.com/scala/class-composition-mixins https://www.baeldung.com/scala/class-composition-mixins The issue is that for most situations, the additional conceptual load of multiple inheritance gets difficult.
- lupire 5y agolike C++?
- tinus_hn 5y agoFor some reason I actually did not know this!