its not as much a "die" as it is a normal "exit", so $@ would not come into
play, but any other global variable will do.  My understanding is that all
separate embperl pages are inside of eval's anyway so I dont know how much
of a difference that would make.

A "global exit" function would make things lots easier, I have my own hack
written to accomplish the same thing, via an "include" subroutine that wraps
"Execute", and an "exitPage" subroutine that sets a global variable which
the "include" function looks at.

It would be important though that we can do both kinds of exits, both
exiting just from a nested page, and also exiting from the whole request.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 3:52 AM
To: [EMAIL PROTECTED]
Subject: Re: proper way to "exit" from an Embperl page ? bug ?


On Thu, May 02, 2002 at 08:06:47AM +0200, Gerald Richter wrote:
> I have to rework the exit handling anyway. I like to have a exit that
exits
> the whole processing, so we don't need theses cascaded exits anymore.

hmm, would it be possible/easy to have

 eval { Execute('something_that_dies_several_levels_in.epl') };
 # check $@, maybe continue

work?

or are all the XS globals/internals just not going to survive that?

-- 
 - Gus

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


============================================================================
==
"WorldSecure Server <mlbaseball.com>" made the following
 annotations on 05/02/02 03:57:26
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----
[INFO] -- Virus Manager:
No Viruses were detected in this message.

============================================================================
==

==============================================================================
"WorldSecure Server <mlbaseball.com>" made the following
 annotations on 05/02/02 10:38:12
------------------------------------------------------------------------------------------------------------------------------------------------------------
[INFO] -- Virus Manager:
No Viruses were detected in this message.

==============================================================================


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to