in reply to Re^3: "use base" or @ISA
in thread "use base" or @ISA

In Perl 6 terms, it "does" Exporter rather than "is" Exporter. That is, Exporter is a role rather than a class. (It's a form of composition, really.) The Exporter role in Perl 6 would presumably supply importation as a submethod rather than a method, so that it's not inherited by subclasses.

It could also be done with delegation, but in that case it "has" an Exporter object.

Of course, Perl 6 might not use an Exporter class or role at all, since the standard export mechanism will be built in, and (we hope) fast.

Replies are listed 'Best First'.
Re^5: "use base" or @ISA
by tye (Sage) on Aug 18, 2004 at 03:53 UTC

    I suspect Dallas.pm has already been written... (or whatever extension Perl6 roles use, or, in this case "roll"s)

    (If not, someone notify the DFW monks.)

    - tye