Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: chaining method calls (smart error object)

by adrianh (Chancellor)
on Jun 12, 2003 at 10:09 UTC ( #265325=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: chaining method calls (smart error object)
in thread chaining method calls

The first thing that struck me thought was "How can AUTOLOAD determine boolean context?".

AUTOLOAD doesn't have to. You overload bool and use it to set some internal flag in the object to say it's been evaluated in a boolean context. Then in DESTROY you throw an exception if the flag has not been set.

  • Comment on Re^3: chaining method calls (smart error object)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2016-06-29 05:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (368 votes). Check out past polls.