On Tue, 18 Jul 2006, Jerry D. Hedden wrote:
> Okay, I have the following coded up:
> 
> Default behavior is for exit() in main or a thread to exit the app.

[...]

ok
 
> There is a thread-exit-only class method:  threads->exit()

[...]

ok
 
> The default behavior for exit() in threads can be changed in
> several ways:
>     Global change
>         use threads 'exit' => 'threads_only';
>         # or
>         use threads 'exit' => 'threads';

Seems ok, but why do you need both 'threads' and 'threads_only'?
 
> When a thread dies, it issues a warning.  It the thread's warning
> handler subsequently issues an 'exit()', that exit will operate as
> per the above.

This doesn't feel quite right.  If exit() terminates the application,
then die() should produce an error and exit the application and not
just produce a warning.

Cheers,
-Jan


Reply via email to