Message-ID: <
20030729213715.GY76899@geeknest.com>
(Use Damian's NEXT-0.51 once Damian and PAUSE like each other)
p4raw-id: //depot/perl@20348
package NEXT;
-$VERSION = '0.50';
+$VERSION = '0.51';
use Carp;
use strict;
@{$NEXT::NEXT{$self,$wanted_method}} =
map { (*{"${_}::AUTOLOAD"}{CODE}) ? "${_}::AUTOLOAD" : ()} @forebears
unless @{$NEXT::NEXT{$self,$wanted_method}||[]};
+ $NEXT::SEEN->{$self,*{$caller}{CODE}}++;
}
my $call_method = shift @{$NEXT::NEXT{$self,$wanted_method}};
while ($wanted_class =~ /^NEXT:.*:UNSEEN/ && defined $call_method
}
}
-BEGIN { print "1..4\n"; }
+BEGIN { print "1..5\n"; }
use NEXT;
my $count=1;
bless($foo,"A");
$foo->test;
+
+package Diamond::Base;
+sub test { print "ok ", $count++, "\n"; shift->NEXT::UNSEEN::test; }
+
+package Diamond::Left; @ISA = qw[Diamond::Base];
+package Diamond::Right; @ISA = qw[Diamond::Base];
+package Diamond::Top; @ISA = qw[Diamond::Left Diamond::Right];
+
+package main;
+
+Diamond::Top->test;