Re: GOTO operator

From: Date: Sun, 01 Aug 2004 00:28:02 +0000
Subject: Re: GOTO operator
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-11775@lists.php.net to get a copy of this message
Sara Golemon wrote:
Thanks for the pointers, I at least see what I need to be exploring now (though I havn't sat down to unfold its meaning yet). Cetainly the implementation given earlier needs work whether its to make it work as advertised or in the more limited fashion suggested in other posts. I intend to put some work into it regardless of whether it'll be included or not. As I mentioned originally, this entire effort was meant as a learning exercise, and it's doing that job. If it's used: great. If not, it'll just stay where it is and those who want it can still patch it in.
How does the GOTO implementation handle this script1.php <?php do_some_stuff(); include script2.php; label: echo "Hello" ?> script2.php: <?php declare_some_funcs(); .... some code ... if (some_cond) {
      goto label;
    }
.... other code.... ?> I think is again local scope because it's in main() Concise, jumping between files that happen to be included. thanks, Andrey

« previous php.internals (#11775) next »