It can't be doable because it makes writing an optimizer impossible.
-sterling
On Tue, 3 Aug 2004 11:54:28 -0700, Sara Golemon <[EMAIL PROTECTED]> wrote:
> > > If you really, really, really wanted to do such a thing, you could still
> do:
> > >
> > > eval("goto foo$bar;");
> > >
> > > to get the same effect, right?
> >
> > Hmm, depends on how it's implemented. It will most likely not work I
> > guess.
> >
> Nope... eval()'d code is in a separate op_array from the code it's eval()'d
> from. While it has the same variable scope it does not have the same label
> pool. Building in that kind of support is theoretically doable (and you'd
> get support for cross-file gotos in the process), but it complicates the
> execution flow somethin' fierce.
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php