Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Answer: How do I make deterministic constructors?

( #32963=categorized answer: print w/ replies, xml ) Need Help??

Q&A > object-oriented programming > How do I make deterministic constructors? - Answer contributed by Perlmage

The short answer is: you can't. Perl doesn't do multiple multiple dispatch.

The long answer is: Use the Class::Multimethods module. As is the case with many of the things that "Perl doesn't do", Damian Conway has made Perl do it.

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

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2016-07-25 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (222 votes). Check out past polls.