[Amforth] Forward declaration for recursive word

2018-12-05 Thread Jan Kromhout via Amforth-devel
Hello I wont to use the forward declaration “forward:” to solve my recursive word roll. Is this use of forward: correct? forward: roll : roll dup 0< \ 0<= if drop else swap >r 1- roll r> swap then ; When I look into the definition of forward: I find the word “iplace”. When I

Re: [Amforth] Forward declaration for recursive word

2018-12-05 Thread Matthias Trute
Am Mittwoch, den 05.12.2018, 13:50 +0100 schrieb Jan Kromhout via Amforth-devel: > Hello > > > I wont to use the forward declaration “forward:” to solve my > recursive word roll. > > Is this use of forward: correct? the forward declaration is for cases in which one word calls another one before

Re: [Amforth] Forward declaration for recursive word

2018-12-05 Thread Jan Kromhout
Thanks Matthis, It is working now. Do you know if the construction “ TO and VALUE “ is available for amForth? Cheers Jan > Op 5 dec. 2018, om 19:28 heeft Matthias Trute het volgende > geschreven: > > Am Mittwoch, den 05.12.2018, 13:50 +0100 schrieb Jan Kromhout via > Amforth-devel: >> Hello