Node:Semantic Links to Other Objects, Next:, Previous:The Keyword Super, Up:Obj Hierarchies

Semantic Links to Other Objects

Some object-oriented languages have syntactic constructs for redirecting the inheritance chain for certain methods to totally different objects that are not defined in the object's inheritance hierarchy. This is not needed in SICStus Objects due to delegation. Assume that the method m/n is linked to object some_object, we just add a method for this:

        m(X1, ..., Xn) :- some_object <: m(X1, ..., Xn) &