Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 romping around the Monastery: (7)
As of 2015-07-29 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls