From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <034701c1289d$4b8be380$3cf7c6d4@SOMA> From: "Boyd Roberts" To: <9fans@cse.psu.edu> References: <20010819085726.Q6233@cackle.proxima.alt.za> Subject: Re: [9fans] Sam question MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Sun, 19 Aug 2001 12:54:18 +0200 Topicbox-Message-UUID: e2891dc2-eac9-11e9-9e20-41e7f4b1d025 From: "Lucio De Re" > I _do_ draw the line at "goto". well it's a toolkit. sometimes you have to use 'goto' for clarity, much as i am loathed to. usually a: for (;;) { for (;;) { ... if (forbid(c)) goto break2; ... } } break2: the problem being that at the end of the first loop requires some sort of test (probably the same test as in the second loop) which will cause code duplication and one day you will forget to keep both tests in sync. iirc it should be 'goto fonfon' :)