develooper Front page | perl.perl5.porters | Postings from October 1999

Re: deprecating SIGDIE

Thread Previous | Thread Next
From:
Gurusamy Sarathy
Date:
October 1, 1999 09:55
Subject:
Re: deprecating SIGDIE
Message ID:
199910011658.JAA24645@activestate.com
On Fri, 01 Oct 1999 11:44:56 BST, Nick Ing-Simmons wrote:
>Sigh. Does this mean I would then have to do : 
>
>eval { local $SIG{__EXCEPTION__}; # protect against 5.6 style
>       local $SIG{__DIE__};       # protect against 5.005 style
>       ...
>       die "__Tk_break__\n" if (some_condition)
>       ...
>     };
>
>if ($@ eq "__Tk_break__\n")
>
>If so, may I request a new "keyword" ("thow" would seem to suit)
>which does not have all these bells, whistles, and baroque twiddly
>bits? Can we then change "require" to use "thow" when it cannot load 
>something ? So that I can test for availability of things and act 
>accordingly.

With the availability of coderefs in @INC, you should be able
to do this:

   push @INC, \&funky_tk_loader;


Sarathy
gsar@activestate.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About