Re: RFC 254 (v1) Class Collections: Provide the ability tooverload classes

[email protected] (Mark Summerfield) Fri, 29 Sep 2000 09:21:16 +0100 (BST)
Newsgroups perl.perl6.language.objects
Message-ID <[email protected]>
On Thu, 28 Sep 2000, David L. Nicol wrote:
[snip] 
 
>    sub speak { print "kerokero"; }
> 
>    foreach (?????) {	# go through all the methods defined in Frog::Frog
> 			# I know there is a way to do this but do not know what it is

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

>       #next if $_ eq speak;  
>       next if defined \&$_; 
>       eval "sub $_ { return &Frog::Frog::$_ @_ }";
>    };
[snip]

___________________________________________________
Mark Summerfield   http://www.netcraft.com/newsfeed
>>Written in my private capacity on my own behalf<<
                 http://www.perlpress.com (Perl)
                http://www.ourobourus.com (Python)