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)
- RFC 254 (v1) Class Collections: Provide the ability to... Perl6 RFC Librarian
- Re: RFC 254 (v1) Class Collections: Provide the a... Michael G Schwern
- Re: RFC 254 (v1) Class Collections: Provide t... Nathan Wiger
- Re: RFC 254 (v1) Class Collections: Provi... Greg Williams
- Re: RFC 254 (v1) Class Collections: Provi... Damian Conway
- Re: RFC 254 (v1) Class Collections: P... Greg Williams
- Re: RFC 254 (v1) Class Collections: P... Damian Conway
- Re: RFC 254 (v1) Class Collections: Provide t... Greg Williams
- Re: RFC 254 (v1) Class Collections: Provi... David L. Nicol
- Re: RFC 254 (v1) Class Collections: P... Mark Summerfield
- Re: RFC 254 (v1) Class Collections: P... Greg Williams
- Re: RFC 254 (v1) Class Collectio... David L. Nicol
