At 9:40 PM +0200 3/29/04, Leopold Toetsch wrote:
Dan Sugalski wrote:

You've got me confused here.

Well, the question is: Is it allowed to create a continuation in one subroutine with the destination label being in a different subroutine?

Oh, OK.


Erm. No. Mostly.

Subs must be considered self-contained--the only way to get out of them is to invoke a continuation. However.... I can see uses for leaving the body of a sub, for example if the compiler decided to factor out code common across multiple subs into a single chunk that's bsr'd into.

For now, let's say subs are self-contained and you can't use addresses outside them. We may lift that restriction later, though.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to