Re: RFC 335 (v1) Class Methods Introspection: what methods does this object support?

[email protected] (Piers Cawley) 03 Oct 2000 08:43:08 +0100
Newsgroups perl.perl6.language.objects
Message-ID <[email protected]>
[email protected] (Johan Vromans) writes:

> [Quoting Piers Cawley, on October 2 2000, 09:44, in "Re: RFC 335 (v1) Cla"]
> > >   $class->can(qr/./);
> > 
> > That wasn't the similar thing I meant. I was talking about walking the
> > @ISA tree. But having C<can> work like that too would be neat.
> 
> Exactly. 'can' walks the ISA tree searching for a name and returning a
> ref to the method if found. I seems straightforward to extend that to
> a pattern search, and return a list instead.

Damn. I thought last time I looked at 'can' it *didn't* walk the tree,
but I've just checked again and it does. So yes, extending it to a
regex search seems like a damn fine idea.

-- 
Piers