[REBOL] Re: On mutability and sameness
From: lmecir:mbox:vol:cz at: 5-Jun-2001 21:43
(it's in my REP somewhere :-)
Seriously: I was curious about the case of DATE! values too.
> >> a: now/date == 5-Jun-2001
I came to the conclusion, the DATE! values are immutable. The expression:
> >> a/day: 6 == 6
may not change a DATE! value. What is going on? See the following functions:
test1: func [
test2: func [
set date poke get date 3 day
test1 a 6
test2 a 6
You know what is going on in the case of TEST1 and TEST2. I think, that
TEST2 simulates what is going on in the case of a set-path.