See remarks below:
Russell [EMAIL PROTECTED]
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 28, 1999 4:34 PM
Subject: [REBOL] Series essay Re:(6)
> Gabriele,
>
> I think, using your example, that I have found a bug in REBOL.
> >> block: copy [] repeat i 4 [use [x] [x: i * i append block 'x]]
> == [x x x x]
> >> do x/1
I get an error here; x has no value. Did you mean to use 'block in that
expression and below, whereever 'x appears?
>> do block/1 returns 1, do block/2 returns 4. Thus it appears that even
though x has no value globally,
it can be "done", ie, evaluated.
Interestingly, if you precede your "code" with x: 25, it retains that value
after executing your first code line.
So the x's that appear in
>> block
[x x x x]
differ from the global x with value 25.
> == 1
> >> do x/2
> == 4
> >> x/1 = x/2
> == true
> >> x/1 == x/2
> == true
> >>
> What do you think? Is it a bug?
>
> Jerry
>