NNTP-Posting-Date: Thu, 08 Nov 2012 08:40:00 -0600 From: Chris Hinsley Newsgroups: comp.lang.forth Date: Thu, 8 Nov 2012 14:40:00 +0000 Message-ID: <2012110814400052484-chrishinsley@gmailcom> References: <2012110713421835115-chrishinsley@gmailcom> <0185e315-1855-415d-b981-638e4a2dabe5@googlegroups.com> <2012110813040151407-chrishinsley@gmailcom> <6b1f524f-4f4e-4cfa-aa1d-4b8f7901090e@m13g2000vbd.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: Genral advise and comments on callback style words User-Agent: Unison/2.1.9 Lines: 22 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-jy7a5BEzIJXZuFCsTmCxMmV/kS6mVziPyf9atAT3Vmn1L2DWwJC4s64RnnBDiSa7sy8Th4bUHDE7aF3!NuNyulASEw1uI7bWVKwNtxyw7KRURSRsOYjwDPHAvKBJf602CGQuoq4YM4nbdWRHHZy8B0c= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2202 Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!news.giganews.com.POSTED!not-for-mail Xref: csiph.com comp.lang.forth:17159 On 2012-11-08 14:34:27 +0000, Mark Wills said: > On Nov 8, 1:04 pm, Chris Hinsley wrote: >> What are people thoughts on having EXIT or in this case multiple EXIT's >> in the middle of words ? It's not very 'stuctured', but maybe that >> dosn't matter. It could have a bad effect on simple inlineing Forth's ? >> ie, if inlining just copys the code of the word inline minus the 'ret' >> at the end ? > > > My novice understanding/opinion of that is: As soon as you determine > that you need to exit, just exit. Don't the do the "set a flag to be > caught somewhere else to effect the exit" thing or the "set the loop > exit condition to make the code drop out at the bottom of the loop" > thing like you would do in more constrained/highly structured > languages. There's no shame in EXIT. It's there, so use it ;-) Yeah. I'm still not keen on introduceing extra taken branches into the loop iteration though ! :( Chris