develooper Front page | perl.perl6.language.objects | Postings from October 2000

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

Thread Previous | Thread Next
From:
JVromans
Date:
October 2, 2000 13:22
Subject:
Re: RFC 335 (v1) Class Methods Introspection: what methods doesthis object support?
Message ID:
14808.42390.270882.311811@phoenix.squirrel.nl
[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.

-- Johan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About