[REBOL] Re: On mutability and sameness
From: gjones05:mail:orion at: 6-Jun-2001 16:03
From: "Ladislav Mecir"
> Hi Volker,
>
> ...snip...
>
> > > it seems reasonable to conclude that the first transcript
> > > demonstrates changing a component of a date "in place", which
> > > would mean that DATE! values *are* mutable. However,
> >
> > they are
> >
>
> try to mutate/alter (i.e. not replace) the first element of BLOCK:
>
> block: [1/1/2001]
Hi, Ladislav,
How about this approach? Does this work?
b1: [1/1/2001] ;== [1-Jan-2001]
b2: b1 ;== [1-Jan-2001]
same? b1 b2 ;== true
b1/1/3: 3 ; == 3
b1 ; == [3-Jan-2001]
b2 ; == [3-Jan-2001]
same? b1 b2 ; == true
Cheers,
--Scott Jones