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

[REBOL] Re: copy/deep

From: lmecir:mbox:vol:cz at: 24-Jul-2003 15:17

Hi Romano,
> I should like that with a new refinement (es. only) copy/deep does not make 2 > copies of the same block, referenced twice, but only one and adjust > references. For example > > now happens: > > a: [] > b: reduce [a a]; == [[] []] > same? b/1 b/2; == true > c: copy/deep b; == [[] []] > same? c/1 c/2;== false > > Instead I should like: > > c: copy/deep/only b; == [[] []] > same? c/1 c/2; == true > > --- > Ciao > Romano >
I wrote a function like that in http://www.fm.vslib.cz/~ladislav/rebol/identity.html#section-24 -L