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

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

Thread Previous | Thread Next
From:
Piers Cawley
Date:
October 2, 2000 01:49
Subject:
Re: RFC 335 (v1) Class Methods Introspection: what methods does this object support?
Message ID:
m1u2avd44n.fsf@rt158.private.realtime.co.uk
JVromans@squirrel.nl (Johan Vromans) writes:

> Piers Cawley <pdcawley@bofh.org.uk> 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


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