On Fri, Sep 01, 2000 at 10:22:49AM +0100, Piers Cawley wrote: > And then there's: > > - Makes factory methods impossible. my Dog $spot; my $pub = $spot->procreate; Sure looks like a factory method to me. Just because you don't get to say my Dog $pup for some optimization doesn't mean they're impossible. > - Conveniently forgets all about polymorphism. package Mammal; sub hair_color { ... } package Dog; use base qw(Mammal); sub CREATE { bless({}, "Dog") } package main; my Dog $spot; $spot->hair_color("blue"); # works just fine I'm not proposing revamping the entire OO system, and I'd like to know what made you think I was. Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com --
- Re: RFC 171 (v2) my Dog $spot should cal... Nathan Wiger
- Re: RFC 171 (v2) my Dog $spot shoul... Piers Cawley
- Re: RFC 171 (v2) my Dog $spot should call a ... Michael Fowler
- Re: RFC 171 (v2) my Dog $spot should cal... David E. Wheeler
- Re: RFC 171 (v2) my Dog $spot shoul... Michael Fowler
- Re: RFC 171 (v2) my Dog $spot s... David E. Wheeler
- Re: RFC 171 (v2) my Dog $spot s... Michael Fowler
- Re: RFC 171 (v2) my Dog $spot s... Bart Lateur
- Re: RFC 171 (v2) my Dog $spot s... Michael Fowler
- Re: RFC 171 (v2) my Dog $spot s... Piers Cawley
- Re: RFC 171 (v2) my Dog $spot should call a cons... Michael Fowler
- Re: RFC 171 (v2) my Dog $spot should call a ... Piers Cawley
- Re: RFC 171 (v2) my Dog $spot should cal... Michael Fowler
- Re: RFC 171 (v2) my Dog $spot should call a constructor i... Slaven Rezic
- Re: RFC 171 (v2) my Dog $spot should call a construc... Michael Fowler
- Re: RFC 171 (v2) my Dog $spot should call a cons... Piers Cawley
- Re: RFC 171 (v2) my Dog $spot should call a constructor i... Michael Fowler