Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • You're calling the parent's method, but you're still calling it on the child. The invocant doesn't change. Only the starting point for method lookup changes.

    • /me slaps his forehead...

      Thanks, chromatic. That did clear up my confusion. I got a bit side-tracked by trying to figure out UNIVERSAL::DOES (and finding practical use for it), but I'll take that to perlmonks.

      Thanks also for taking the time to reply in these, uhm, days of peace and celebration. For whatever it's worth, I think you guys are doing great work on Perl 6.
      • I got a bit side-tracked by trying to figure out UNIVERSAL::DOES (and finding practical use for it), but I'll take that to perlmonks.

        It's a method intended explicitly for people to override if they support roles/traits. The default implementation falls back on UNIVERSAL::isa, so it answers the DOES question correctly when the how is "through inheritance".