I think this is a new feature of latest rebol versions.

you are right that it used to stay stuck at the end... it seems to now reset
the index at its location prior to the forall.

if you probe the colors after, you will see it is where it was prior to the
loop... even if you offset it before looping.

I just discovered that!

 I wouldn't be surprised that many rebolers haven't realized this yet!


-MAx

On Wed, Mar 25, 2009 at 10:14 PM, <[email protected]> wrote:

>
>  Hi.....
>
> I'm a new-guy in the REBOLution ;)
>
> At 62, I may be too old to make a good REBOLutionary, but I suppose
> that advocacy is ageless. I'm a self-taught, amateur Perl and M(umps)
> programmer. I've also had a long, hard look at Forth. I see in REBOL
> what appears to be "some" Forth influence. Could I be correct?
>
> Anyway, so far I really enjoy REBOL - it's dead easy and very
> intuitive. I'm using /Core on an OS X Intel box running the latest
> Leopard patch. I don't believe /View will work on my machine.
>
> Question:
> The manual states:
>
> The forall advances the variable position through the series, so when
> it returns the variable is left at its tail:
>
> Therefore, the variable must be reset before it is used again:
>
> However. when I try it out I get:
>
>  >>
>  >> colors: [red green blue yellow orange]
>  == [red green blue yellow orange]
>  >>
>  >> forall colors [print first colors]
>  red
>  green
>  blue
>  yellow
>  orange
>  >>
>  >> print tail? colors
>  false
>
> Thanks for the help and a great language!
> --
> duke
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Duke Normandin
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
>


-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to