|
Problem:
You want to create a method in your class that exhibits the same autochaining as constructor methods. Whenever invoked, your method should be called first in parent classes, then in your subclass, 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"? :-)
|