[EMAIL PROTECTED] wrote:

> for k 1 22 2 [print "Count is " k]
> Count is
> Count is
> Count is
> Count is
> Count is
> Count is
> Count is
> Count is
> Count is
> Count is
> Count is
> == 21

k is not passed to print as a parameter, it is evaluted by itself--in
this case as the return value for the FOR loop.

>
>
> BUT
>
> for k 1 22 2 [print ["Count is " k]]
> Count is  1
> Count is  3
> Count is  5
> Count is  7
> Count is  9
> Count is  11
> Count is  13
> Count is  15
> Count is  17
> Count is  19
> Count is  21
>
> Should not both be equivalent?  Why would the first form ignore the
> brackets?  Also

You see print takes only one parameter, so when you gave it a block that
was ok since that is one thing.

>
>
> for k 1 22 2 [[print "Count is "] k]
> == 21
>
> Say what? A Rebol "Block" is not like { } in C?
>

Yes, not at all!  Just let go of all your programming knowledge and
start fresh.  It helped me to read the users guide numerous times.

>
> ---
> Harry Parshall Jr.
> [EMAIL PROTECTED]

Godspeed,
--Ryan

Reply via email to