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

[REBOL] make/deep functionality?

From: robert:muench:robertmuench at: 15-Jan-2003 16:15

Hi, I have the following problem: Rebol [] my1!: make object! [ a: [aa 1 bb []] ] my2!: make object! [ b: make my1! [] ] c: d: none make-c: does [c: make my2! []] make-d: does [d: make my2! [] append d/b/a/bb "Test"] make-c ?? c ?? d make-d ?? c ?? d Halt Why is c changed? And how can I avoid this? I need something like a make/deep or so. This mixed constructor semantic really drives me nuts... In 99% of all cases, where I use make! I need a new object with all nested objects being new ones too. Robert