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

[REBOL] Re: On mutability and sameness

From: holger:rebol at: 12-Jun-2001 9:05

On Wed, Jun 06, 2001 at 09:11:00AM -0500, Joel Neely wrote:
> 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.
Yes, but, by definition, the date component of a date! value is another date! value, so /date returns what it is supposed to. REBOL does not use different datatypes for "date without time" and "date with time". They are both of type date!. -- Holger Kruse [holger--rebol--com]