Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Possible to unset at_exit?

Reply
Thread Tools

Possible to unset at_exit?

 
 
Todd A. Jacobs
Guest
Posts: n/a
 
      06-12-2007
Is it possible to unset an at_exit proc? Currently, I'm calling exit! in
order to bypass defined exit handlers, but it seems like there should be
a better way, such as unsetting specific procs that I may not want to
run at exit because of some runtime condition.

--
"Oh, look: rocks!"
-- Doctor Who, "Destiny of the Daleks"

 
Reply With Quote
 
 
 
 
Nobuyoshi Nakada
Guest
Posts: n/a
 
      06-12-2007
Hi,

At Tue, 12 Jun 2007 11:50:27 +0900,
Todd A. Jacobs wrote in [ruby-talk:255247]:
> Is it possible to unset an at_exit proc? Currently, I'm calling exit! in
> order to bypass defined exit handlers, but it seems like there should be
> a better way, such as unsetting specific procs that I may not want to
> run at exit because of some runtime condition.


Currently, no.

Can't you check the condition inside the proc?

--
Nobu Nakada

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to unset iomanip manipulators? Stefan Ram C++ 4 12-07-2009 09:58 AM
Re: How to unset iomanip manipulators? Stefan Ram C++ 1 12-07-2009 08:36 AM
Lookout the master of Unset <g> Lookout1.5 Computer Support 0 03-30-2008 04:13 AM
Ant idiom for signaling error on unset properties? nyenyec Java 0 01-26-2007 05:24 PM
Altenative of PHP Function "Unset" in ASP fasanay@yahoo.com ASP .Net 7 10-22-2004 08:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57