Perl6 Object Oriented Cookbook (v0.2.1)  
Section 4: Inheritance  
 
Recipe 4.19: Determining the 'NEXT' Parent of a Class
Last Updated: Sep 8, 2003
Status: Draft
      Previous Page   Next Page

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

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

Problem:  

You want to know the most immediate 'NEXT' class of a class or object.

Solution:  

Use .NEXT:

my $superclass = MyClass.NEXT;

my $superclass = $obj.NEXT;

Discussion:

Issue: Synonymous with SUPER in this usage, or not?


Log In to Comment


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