5.10

Paul Makepeace paulm at paulm.com
Mon Jan 7 15:58:52 GMT 2008


On 1/7/08, Dirk Koopman <djk at tobit.co.uk> wrote:
> Paul Makepeace wrote:
> > On 1/7/08, Dirk Koopman <djk at tobit.co.uk> wrote:
> >> Has anybody tried perl 5.10 out on some real code? I appear to be
> >> getting the odd problemette...
> >>
> >> For instance, try this:-
> >>
> >> package fred;
> >>
> >> our @ISA = qw(fred);
> >>
> >> 1;
> >>
> >> Although it is a manifestly silly error, I don't think that it merits a
> >> (new) fatal error like this:-
> >>
> >> "Recursive inheritance detected in package 'fred' at fred.pm line 3."
> >>
> >> What worries me more is the implication that something fundamental has
> >> changed in the way that inheritance works.
> >
> > What's changed, aiui, is that it's caught at compile time rather than
> > runtime. It was still an error before, it's just that you didn't hear
> > about it until you sent the engine into a spin.
> >
>
> But that's the point: it didn't. Has never (until now). Not in 10 years.

Yeah it did:

do 'dirks_script.pl'
package main;
fred->isa('foo');
__END__

You just got lucky but not attempting to resolve something that it
couldn't find.


More information about the london.pm mailing list