Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: On mutability and sameness

From: joel:neely:fedex at: 6-Jun-2001 9:11

Hi, again, Minor update to previous message... Ladislav Mecir wrote:
> I am pretty sure, that the feature you are describing is not a > bug. The reason for the behaviour is pretty simple. Rebol values > of type TUPLE! DATE! INTEGER! and some other types are immutable... >
The oddity I described appears to reside in the /DATE "refinement" itself, based on this:
>> a: now == 6-Jun-2001/9:05:53-5:00 >> a/date == 6-Jun-2001 >> a/date/date == 6-Jun-2001 >> a/date/date/date/date/date/day == 6
so that /DATE behaves less like a component selector and more like a function that takes a (complete) DATE! value and returns another DATE! value with the TIME! component set to none. -jn-