Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <1798370.KIKV79CF6h@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 30 Dec 2011 16:10:19 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: Simulate goto Newsgroups: comp.lang.javascript References: <4ef9a823$0$6842$e4fe514c@news2.news.xs4all.nl> <1931071.aqSPkdTlGX@PointedEars.de> <1367331.WGnKmheAe9@PointedEars.de> <9m1iteFodiU1@mid.uni-berlin.de> <1932615.aqSPkdTlGX@PointedEars.de> <2061055.5TFfkVmt2V@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 24 NNTP-Posting-Date: 30 Dec 2011 16:10:19 CET NNTP-Posting-Host: 6647814f.newsspool1.arcor-online.net X-Trace: DXC=AJU?EBV7GKaUoRk[hk2Walic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgbkCF7l1W35VeDZm8W4\YJNlOG5GDc6?K]`T[WlMRbTA[g6h7]UAPH2Fd X-Complaints-To: usenet-abuse@arcor.de Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:9782 John G Harris wrote: > Yes, break can be used to jump to the end of an enclosing block. That is not quite it. > Of course, your next (non-) problem is that Crockford will flag your block > labelled skipPoint as a syntax error. Interesting. > The thing that will disappoint the OP is that neither continue nor break > can jump to a given label, nor can they jump backwards, so it's not > possible to use them to simulate a general goto. AISB. PointedEars -- Sometimes, what you learn is wrong. If those wrong ideas are close to the root of the knowledge tree you build on a particular subject, pruning the bad branches can sometimes cause the whole tree to collapse. -- Mike Duffy in cljs,