Re: RFC 193 (v1) Objects : Core support for method delegation
[email protected] ("David L. Nicol") Tue, 05 Sep 2000 17:38:32 -0500
| Newsgroups | perl.perl6.language.objects |
|---|---|
| Organization | University of Missouri - Kansas City supercomputing infrastructure |
| Message-ID | <[email protected]> |
When you want to turn off an inherited delegation in an ISA situation?
"David E. Wheeler" wrote:
>
> 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
--
David Nicol 816.235.1187 [email protected]
perl -e'@w=<>;for(;;){sleep print[rand@w]}' /usr/dict/words