IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Slightly more than that
Turns out that destructors (DESTROY) of objects are executed _after_ END blocks, so I had to have an Ender class declared, and use an instance of that class, allocated fairly early in the code to exit.

------

179. I will not outsource core functions.
--
[link|http://omega.med.yale.edu/~pcy5/misc/overlord2.htm|.]

New Ah. Missed that detail.
Please note that reliable destruction order during global destruction was only recently added to Perl, so that strategy is only truly reliable on very recent versions of Perl.

This is definitely a misfeature. :-(

Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
New 5.8

------

179. I will not outsource core functions.
--
[link|http://omega.med.yale.edu/~pcy5/misc/overlord2.htm|.]

New /me checks the change history...
And finds that reliable destruction order was added in 2000, so all 5.8 releases have it.

Note that, until 5.8, exit() did not run DESTROY or END blocks. So your problem would not have existed then. (But you didn't get the chance to do cleanup that you might want to.)

Cheers,
Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
     Larry Wall thinks it's a feature - (Arkadiy) - (6)
         I'll report that as a misfeature - (ben_tilly) - (4)
             Slightly more than that - (Arkadiy) - (3)
                 Ah. Missed that detail. - (ben_tilly) - (2)
                     5.8 -NT - (Arkadiy) - (1)
                         /me checks the change history... - (ben_tilly)
         Punishment for trying OOP in Perl? -NT - (tablizer)

WoCFoC
46 ms