Sujet : Re: LOOP
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 29. Jun 2025, 04:04:39
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <165cc291d6dc36195692f023cb6283433de683d5@i2pn2.org>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird
On 29/06/2025 6:04 am,
sean@conman.org wrote:
It was thus said that the Great dxf <dxforth@gmail.com> once stated:
<[Wil] W.BADEN1> Chuck walked out of ANSI becuz it wudn't make
FOR...NEXT required.
<[Wil] W.BADEN1> That was 1988. And the operative word is "required."
What is the difference between FOR/NEXT and DO/LOOP? Don't they do the
same thing?
FOR NEXT was conceived as a bare-bones loop that down-counts to zero.
DO LOOP is more flexible. While Moore was prepared to throw out the
latter's features for a simpler implementation in microcode, it's fair
to say most forthers were not.