Re: RFC 193 (v1) Objects : Core support for method delegation
[email protected] ("David E. Wheeler") Tue, 05 Sep 2000 14:27:58 -0700
| Newsgroups | perl.perl6.language.objects |
|---|---|
| Organization | Salon Internet |
| Message-ID | <[email protected]> |
Damian Conway wrote:
> Err, that *is* the default behaviour. Delegation doesn't occur unless
> you specify it. Or am I missing your meaning here?
use delegation
attr1 => [qw( method1 method2 method3 )],
attr2 => [qw( method4 method5 )],
attr3 => __ALL__, # Use all of them.
attr4 => []; # Use none of them.
Yes, I realize that not putting attr4 in there at all is the same
(default) thing. It's just kind of a semantic thing in my mind. But
maybe It's just *my* mind. ;-)
Thanks,
David