Perl6 RFC Librarian <[EMAIL PROTECTED]> writes:

> This and other RFCs are available on the web at
>   http://dev.perl.org/rfc/
> 
> =head1 TITLE
> 
> Class Methods Introspection: what methods does this object support?
> 
> =head1 VERSION
> 
>   Maintainer: Mark Summerfield <[EMAIL PROTECTED]>
>   Date: 28 Sep 2000
>   Mailing List: [EMAIL PROTECTED]
>   Number: 335
>   Version: 1
>   Status: Developing
> 
> =head1 ABSTRACT
> 
> This RFC proposes a new UNIVERSAL method which would be used thus:
> 
>     my @method_names = $object->methods(); # OR MyClass->methods();

Nice work. However, I would say that in an OO context there's a case
for walking the @ISA Tree to find out all the methods that the class
will respond to, say $object->all_methods, after all, in a complex
class hierarchy there may be classes that implement only one or two
methods that are distinct from the methods of their parent class.
Actually, I'd like to see something similar done to Universal::can
(though Interface polymorphism may make this less important...)

-- 
Piers

Reply via email to