develooper Front page | perl.perl6.language | Postings from July 2001

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
July 3, 2001 01:06
Subject:
Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)
Message ID:
20010703040640.C24224@blackrider
On Tue, Jul 03, 2001 at 08:34:00AM +0100, Piers Cawley wrote:
>     my $anon = My::Anon::ObjectFactory->new({base => 'Class',
>                                              method1 => sub { ... },
>                                              method2 => sub { ... }},
>                                             @constructor_args);

Cool!  When will the module be on CPAN? ;)

-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>	     Kwalitee Is Job One
grep { ref and ref !~ /^[A-Z]+$/ } kill 9, @ARGV;

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