home .. forth .. colorforth mail list archive ..

Re: [colorforth] Dare I say ANS!


Hi Samuel,

Thanks for explaining ?dup - but should we call it something else?

> On Thursday 15 January 2004 05:22 am, Howerd Oakford wrote:
> > Make i return an index from 0 to n-1 instead of 1 to n. I presume this
> > was intentional - does any one know why?
>
> Because implementing FOR/NEXT is substantially easier to implement than
> DO/LOOP.
I like for ... next , and can happily live without do ... loop, but why does
i return 1 to n instead of 0 to n-1 ?
I don't see how what i does affects the loop itself...

Regards

Howerd


---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com