|
Problem:
You want to create a method in your class that exhibits the same autochaining as object destructor methods. Whenever invoked, your method should be called first in your subclass, then in all parent classes, automatically. Solution:
Discussion: (If Perl6 has code to perform autochaining of constructors/destructors, it might be nice to expose that to the user in such a way as to allow them to easily create other methods with similar behavior. It's a useful technique, after all.) Issue: Is there any well-informed consensus on which direction should be called "descending" and which should be called "ascending"? :-)
|