Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Answer: How do I make deterministic constructors?

by QandAEditors
on Jun 28, 2000 at 20:07 UTC ( #20197=categorized answer: print w/replies, xml ) Need Help??

Q&A > object-oriented programming > How do I make deterministic constructors?

While waiting for an answer, I've been playing with a few ideas. I've touched on passing hashes into the constructor, as well as lists. I guess I was hoping that it could be done in what I view to be a simplistic way instead of either handling cases where I look for the existence of x to determine which route to apply, or by having multiple methods which are constructors (in the sense that they bless) that follow no particular naming convention. Thanks for the confirmation that I wasn't overlooking something (I'm just now dabbling in the black arts of Perl OO, and have not yet purchased the OO Perl book).

  • Comment on Answer: How do I make deterministic constructors?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[talexb]: So low end these days means quad core? Jeepers.
[jedikaiti]: 'mornin, Monks
[Corion]: talexb: Well, low end for desktops :-D
[marto]: hey jedikaiti

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2017-07-27 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (418 votes). Check out past polls.