Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Pure Virtual Functions

by zwon (Abbot)
on Feb 06, 2009 at 22:18 UTC ( [id://742023]=note: print w/replies, xml ) Need Help??


in reply to Pure Virtual Functions

I don't like the idea to check such things at runtime. C++ and Java use interfaces to do checks at compile time, and this makes sense for me; your method would do checking after module was released to production use adding useless loop to every object creation. My opinion is that right place to perform such checks is in the t/*.t and right function is can_ok from the Test::More.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-29 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found