Re: RFC 335 (v1) Class Methods Introspection: what methods does this object support?
[email protected] (Piers Cawley) 02 Oct 2000 09:44:08 +0100
| Newsgroups | perl.perl6.language.objects |
|---|---|
| Message-ID | <[email protected]> |
[email protected] (Johan Vromans) writes: > Piers Cawley <[email protected]> writes: > > > Actually, I'd like to see something similar done to Universal::can > > my @methods = $class->can(pattern) > > where pattern is a perl pattern matching method names. For a full > list, use > > $class->can(); > > or > > $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. -- Piers