Re: GOTO operator

From: Date: Fri, 30 Jul 2004 19:06:24 +0000
Subject: Re: GOTO operator
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-11713@lists.php.net to get a copy of this message
"Sara Golemon" <pollita@php.net> wrote in message news:20040730185734.76549.qmail@pb1.pair.com... > > >The C# goto is limited: "goto statements can transfer control within > > >blocks and out of blocks, but never into blocks." Does the PHP goto > > >implementation have this limitation? > > > > > No it doesn't. As I mentioned Sara's implementation is extremely flawed. > So > > yes there is a technical issue here beside a semantic issue. And the C# > > limitation might very well apply in PHP too. > > > To clarify my earlier (energized) post. There is jumping into blocks, I was referring to a different layer of scope. My bad. But I'm still curious what flaws are seen. This goto implementation was tested with many different combinations of jumping into and out of control blocks (including try/catch) with expected results every time. -Sara

« previous php.internals (#11713) next »