<br><br>
<div><span class="gmail_quote">On 3/13/07, <b class="gmail_sendername">David Mathog</b> <<a href="mailto:mathog@caltech.edu">mathog@caltech.edu</a>> wrote:</span>
<div> </div>
<div>...</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">if(i==1){}<br>else if(i==2){}<br>etc.<br><br>Hopefully things have improved since then. It is possible to force a
<br>sort of computed goto in C (transfer control staying<br>within a function) but it involves pre-storing addresses of labels in<br>an array and then transferring control via a pointer retrieved<br>via an index into that array.  It's too hideous to contemplate,
<br>...</blockquote>
<div> </div>
<div>It may be too hideous to contemplate, but it's not too hideous to do, if you want to micromanage efficiency in the proverbial innermost loop. I was just looking at a friend's code that trades looping for indexing into an array; it's not real pretty, grubby string munging. (It may be available as a mini Sourceforge project, soon, but I think it will end up in an existing package; "memrspn")
</div>
<div> </div>
<div> I've just made up a toy example that I've attached.</div>
<div>Peter</div>
<div> </div>
<div> </div><br> </div><br>