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

Re: Re: Re: Forcing Compile Time Checking That Subs Exist

by chromatic (Archbishop)
on Jun 04, 2001 at 21:09 UTC ( [id://85611]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Re: Forcing Compile Time Checking That Subs Exist
in thread Forcing Compile Time Checking That Subs Exist

Maybe the compiler's not the right tool to catch these errors.

It's a hard nut to crack because of things like AUTOLOAD, Autosplit, and run-time access to class symbol tables. We won't even get into the abomination that is multiple dispatch, because I'm still wrapping it around my brain.

I catch a lot more errors running unit tests on my code than I do running it through the compiler and looking for warnings. If you exercise your code paths sufficiently as bikeNomad suggests, you'd get closer to what you want than the compiler can provide.

It's not exactly what you want, but it's working pretty well for me.

  • Comment on Re: Re: Re: Forcing Compile Time Checking That Subs Exist

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://85611]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.