Perl6 Object Oriented Cookbook (v0.2.1)  
Section 5: Constructors, Destructors, and Autochained Methods  
 
Recipe 5.16: Controlling the Invocation Chain of an Autochained Method
Last Updated: Sep 8, 2003
Status: Draft
      Previous Page   Next Page

How important is this problem to you?
  (Login to Vote)
1.00 Rating, 1 Vote  

How acceptable is the proposed solution?
  (Login to Vote)
0.00 Rating, 0 Votes  

Problem:  

You have created an autochained method: you want to specify the order in which the method will be invoked for parents.

Solution:  

Discussion:

(Once you get this complicated, is there any value in autochaining at all, or should you just do it yourself? After all, it's barely "auto" anymore...)


Log In to Comment


Login / Edit User Info -- Copyright © 2002 Cognitivity -- Previous Page   Next Page