On my PC (Athlon X2) Version 4.20 Build 036 at 06.Mar.2009
: X >R BEGIN R@ . R@ -255 0 WITHIN WHILE R> 1+ >R REPEAT R> DROP ;
-3 X
-3 -2 -1 0
Ok
22.09.2009 12:41, Gerry Jackson wrote:
> In SP-Forth 4.20, a simple example to show the problem.
>
> : x>r begin r@ . r@ -255 0 within while r> 1+>r repeat r> drop ;
> -3 x
> -3 -2 -1 -256 Ok
>
> Should be
> -3 -2 -1 0 Ok
>
> The r> 1+>r inside the loop increments -1 to -256
>
> Gerry Jackson
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
>
http://p.sf.net/sfu/devconf> _______________________________________________
> Spf-dev mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/spf-dev>
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
Spf-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spf-dev