Perl6 Object Oriented Cookbook (v0.2.1)  
Section 5: Constructors, Destructors, and Autochained Methods  
 
Recipe 5.10: Altering the Order in which Initializers are Called
Last Updated: Sep 8, 2003
Status: Draft
      Previous Page   Next Page

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

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

Problem:  

You want to alter the order in which the object initializers of parent classes are called for your subclass. For example, your subclass requires that the initialization for one parent class takes place before another parent class.

Solution:  

Discussion:

(You can do some of this by simply changing the order in which multiple parents are inherited. Would there ever be a need for anything more dramatic than that?)


Log In to Comment


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