[REBOL] Bug! in assignment to date! values with stacked set-path values
From: al::bri::xtra::co::nz at: 12-Nov-2002 20:04
Here's an example:
>> x: now/date
== 12-Nov-2002
>> x/day: 1 ; Try individually; OK!
== 1
>> x
== 1-Nov-2002
>> x/month: 1 ; Try individually; OK!
== 1
>> x
== 1-Jan-2002 ; And the expected value is shown.
>> x: now/date ; Get fresh value.
== 12-Nov-2002
>> x/month: x/day: 1 ; Now stack up the assignments.
== 1 ; correct value is returned, but...
>> x
== 12-Jan-2002 ; Note that only the MONTH is altered...
>> x: now/date ; Get fresh value.
== 12-Nov-2002
>> x/day: x/month: 1 ; Reverse the order....
== 1
>> x ; Note that only the DAY is altered...
== 1-Nov-2002
It's buggy on Rebol/Core, Rebol/View, Rebol/Base and all the beta versions.
The work around for now is to separate the assignments, as shown in the
first few steps.
I've just sent this in to feedback.
Andrew Martin
ICQ: 26227169 http://valley.150m.com/