Re: There's got to be a better way



shimmyshack wrote:

it's not rude or abrasive, to notice you don't take advice and say so,
perhaps a little bruusque though, and I apologise if I made you cross.

Apology gladly accepted!

I thought about this further by taking it to extremes. If I was
calling func(a1), func(a2)... func(a100) then it's a no-brainer,
use a for loop. OTOH if I had only two to do, a for loop would
look a bit silly. So which side of the line is five?

--
"Checking identity papers is a complete waste of time. If anyone can
be counted on to have valid papers, it will be the terrorists".
.



Relevant Pages

  • Re: Named stack items
    ... >\ cross VFX locals 4812 ms elapsed ... There's probably something very wrong I've done, the null loop times I ...
    (comp.lang.forth)
  • Not using locals on some forths have unexpected advantages...
    ... be twice slower than ANS locals. ... \ Cross Product... ... \ and stores the result in loop time. ... cross direct 2970 ms elapsed ...
    (comp.lang.forth)
  • Re: Theres got to be a better way
    ... a1 to a5 get generated by a for loop I've still got b, c, d, e, f ... in an array and step through the array. ... This might be worth doing. ... "Checking identity papers is a complete waste of time. ...
    (comp.lang.php)
  • Re: Not using locals on some forths have unexpected advantages...
    ... What is the 1k alignment bug anyway, seems to affect indirect ... Null loop 16 ms elapsed ... cross VFX locals 234 ms elapsed ... cross VFX locals 4626 ms elapsed \ all these words use indirect ...
    (comp.lang.forth)
  • Re: Hayes CORE tests: DO ... LOOP
    ... included enough information to remove ambiguity in the implementation ... exactly what "If the loop index did not cross the boundary between ... the loop limit minus one and the loop limit, ... When an increment causes the index to cross this boundary the loop ...
    (comp.lang.forth)