Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22219 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22049 invoked by uid 1010); 7 Mar 2006 18:01:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 22033 invoked from network); 7 Mar 2006 18:01:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2006 18:01:32 -0000 X-Host-Fingerprint: 69.56.217.178 unknown Linux 2.4/2.6 Received: from ([69.56.217.178:46018] helo=coggeshall.org) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D9/B2-22029-87ACD044 for ; Tue, 07 Mar 2006 13:01:28 -0500 Received: from [192.168.0.114] (69-162-207-15.bflony.adelphia.net [69.162.207.15]) (authenticated bits=0) by coggeshall.org (8.12.8/8.12.8) with ESMTP id k27HbpuV024768 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 7 Mar 2006 11:37:52 -0600 To: Robert Cummings Cc: Dmitry Stogov , internals@lists.php.net In-Reply-To: <1141753844.23691.3.camel@blobule.suds> References: <000001c641c9$80dbfad0$6e02a8c0@thinkpad> <1141753844.23691.3.camel@blobule.suds> Content-Type: text/plain Date: Tue, 07 Mar 2006 12:58:13 -0500 Message-ID: <1141754293.6113.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-6) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] GOTO and/or BREAK LABEL From: john@coggeshall.org (John Coggeshall) if($choice == 1) { goto bad; } else if ($choice == 2) { goto good; } else if ($choice == 3) { goto bad; } else if ($choice == 4) { goto good; } good: $vote++; bad: return; On Tue, 2006-03-07 at 12:50 -0500, Robert Cummings wrote: > On Tue, 2006-03-07 at 04:28, Dmitry Stogov wrote: > > Hi, > > > > Because of some confused people I reverted "break label" patch and post it > > for discussion once again together with GOTO patch. > > > > Please reviw and vote. > > > > 1) goto and break label > > 2) goto only (like C) > > 3) break label only (like Java) > > 4) nothing > > 2) +1 > > What's the policy on voting btw? Am I allowed? > > Cheers, > Rob. > -- > .------------------------------------------------------------. > | InterJinn Application Framework - http://www.interjinn.com | > :------------------------------------------------------------: > | An application and templating framework for PHP. Boasting | > | a powerful, scalable system for accessing system services | > | such as forms, properties, sessions, and caches. InterJinn | > | also provides an extremely flexible architecture for | > | creating re-usable components quickly and easily. | > `------------------------------------------------------------' >