Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Re (tilly) 2: Paradigm Shift - Dual Use Constructors

by demerphq (Chancellor)
on Feb 20, 2002 at 09:59 UTC ( #146537=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re (tilly) 2: Paradigm Shift - Dual Use Constructors
in thread Paradigm Shift - Don't use strict

Hmm. Interesting angle. But ircc (its on my home computer) the code went more like

sub new { my $proto=shift; my $class=$proto || ref $proto; my $self=bless {},$class; if ($class eq $proto) { #class call $self->init_rand(); } elsif (@_) { $self->init_cross($proto,shift); } else { $self->init_mutate($proto); } return $self }
So the dreaded line was/is present. But you are correct I did/would comment this.

Yves / DeMerphq
--
When to use Prototypes?


Comment on Re: Re: Re: Re (tilly) 2: Paradigm Shift - Dual Use Constructors
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://146537]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2014-07-23 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (149 votes), past polls