Possible to unset at_exit?

Discussion in 'Ruby' started by Todd A. Jacobs, Jun 12, 2007.

  1. 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"
    Todd A. Jacobs, Jun 12, 2007
    #1
    1. Advertising

  2. 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
    Nobuyoshi Nakada, Jun 12, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    7
    Views:
    3,239
    Ryan Walberg, MCSD for .NET
    Oct 22, 2004
  2. nyenyec
    Replies:
    0
    Views:
    339
    nyenyec
    Jan 26, 2007
  3. Stefan Ram
    Replies:
    4
    Views:
    928
    Bill Davy
    Dec 7, 2009
  4. Stefan Ram
    Replies:
    1
    Views:
    361
    Stefan Ram
    Dec 7, 2009
  5. Wolfman

    unset TCL_LIBRARY and TK_LIBRARY

    Wolfman, Apr 5, 2010, in forum: Python
    Replies:
    1
    Views:
    857
    Dave Angel
    Apr 5, 2010
Loading...

Share This Page