This function declares that methods with a certain name should be chained in the inheritance order (bottom-most method runs first).
dcl.chainAfter() to set a chaining rule for a method.
1 2 3 4 5 6
Following rules should be followed:
- It is impossible to “unchain” a chained method.
- It is impossible to change a chained method once it was set from “before” to “after” or in the opposite direction.
- Chaining can be declared only for base-less “classes”.
- It is an error to mix “classes” with different chaining rules for the same method.
By default, all constructors produced by
dcl use “after” chaining.
It is possible to declare chaining for a method without actually declaring the method.