Re: PHP 5.1
| From: | Sara Golemon | Date: | Tue, 07 Jun 2005 15:56:46 +0000 |
| Subject: | Re: PHP 5.1 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16525@lists.php.net to get a copy of this message | ||
> GS>>Well, point a) implied that it's a solvable problem, at least as much
as it
> GS>>is when doing any sort of premature exit from a block.
>
> It's worse problem since we are going to jump to random place and not just
> to the end of the block. At the end of the block we could have opcode that
> takes care of that. At random place, we can't have it.
>
Sure we can. The labels know what break container they're in and the gotos
know what break container they're called from. It's a simple matter to
traverse backwards through the break containers freeing up the resources
used by each control structure.
-Sara