Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: oo design q: SUPER::_init

by lestrrat (Deacon)
on Feb 21, 2006 at 00:14 UTC ( [id://531560]=note: print w/replies, xml ) Need Help??


in reply to Re: oo design q: SUPER::_init
in thread oo design q: SUPER::_init

No, you miss my point. If you use named parameters, you can use the code that I posted.

Replies are listed 'Best First'.
Re^3: oo design q: SUPER::_init
by alienhuman (Pilgrim) on Feb 21, 2006 at 00:49 UTC

    Shoot. You're right. I misunderstood your example.

    And yours has the advantage of making it harder for the user to screw up the assignment by passing the arguments out of order (that is to say, there is no order if they're passed as named arguments).

    ----------
    Using perl 5.8.1-RC3 unless otherwise noted. Apache/1.3.33 (Darwin) unless otherwise noted. Mac OS X 10.3.9 unless otherwise noted.

      For completeness sake (and because I might want to refer to this in the future), here's my code with named params. Thanks for your help and patience.

      ----------
      Using perl 5.8.1-RC3 unless otherwise noted. Apache/1.3.33 (Darwin) unless otherwise noted. Mac OS X 10.3.9 unless otherwise noted.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-20 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found