> Is this not just a module which creates the necessary subs in the calling > package ? The catchall can be done with an AUTOLOAD sub. That's certainly how Class::Delegation is implemented. It isn't quite adequate however, because if you trigger the AUTOLOAD and it *fails* to delegate, you can only invoke $self->SUPER::AUTOLOAD(), which locks out any potential AUTOLOADS on *other* branches of the inheritance tree. Of course, the NEXT:: pseudoclass would fix that limitation too. The reason I proposed it for the core is simple: speed. No-one will use delegation unless it's fast, and it won't be fast unless it's integrated with the dispatch mechanism. Damian
- RFC 193 (v1) Objects : Core support for method delegat... Perl6 RFC Librarian
- Re: RFC 193 (v1) Objects : Core support for metho... Uri Guttman
- Re: RFC 193 (v1) Objects : Core support for metho... Damian Conway
- Re: RFC 193 (v1) Objects : Core support for m... Uri Guttman
- Re: RFC 193 (v1) Objects : Core support for metho... Michael G Schwern
- Re: RFC 193 (v1) Objects : Core support for m... Piers Cawley
- Re: RFC 193 (v1) Objects : Core support for metho... Piers Cawley
- Re: RFC 193 (v1) Objects : Core support for metho... Graham Barr
- Re: RFC 193 (v1) Objects : Core support for metho... David E. Wheeler
- Re: RFC 193 (v1) Objects : Core support for metho... Damian Conway
- Re: RFC 193 (v1) Objects : Core support for metho... Damian Conway
- Re: RFC 193 (v1) Objects : Core support for m... Nathan Wiger
- Re: RFC 193 (v1) Objects : Core support for m... David E. Wheeler
- Re: RFC 193 (v1) Objects : Core support for m... Damian Conway
- Re: RFC 193 (v1) Objects : Core support f... David E. Wheeler
- Re: RFC 193 (v1) Objects : Core suppo... David L. Nicol
- Re: RFC 193 (v1) Objects : Core ... David E. Wheeler
- Re: RFC 193 (v1) Objects : Core ... Damian Conway
- Re: RFC 193 (v1) Objects : Core support f... Damian Conway
- Re: RFC 193 (v1) Objects : Core support for metho... Damian Conway