This function declares that methods with a certain name should be chained in the reversed inheritance order (top-most method runs first).
dcl.chainBefore() 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.
Chaining using “before” is frequently used for destructors or similar methods.
It is possible to declare chaining for a method without actually declaring the method.