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

[REBOL] dangerous references?

From: maximo::meteorstudios::com at: 24-Jul-2003 9:44

hi, can anyone tell me if the following is a possible bug in hiding? ;-------------------------------------------------------------------------------- ; create an object a: make object! [ b: "some text" c: func [arg][print arg print b] ] ; extract a function from it obj-func: get in a 'c ;loose pointer to object! a: none ; execute function of lost object obj-func ;----------------------------------------------------------------------------------- will the GC eventually make this code unstable, or will it know not to trash object a because one of its members is being used somewhere else? -max ----------- meteor Studios, T.D. ----------- Strong enough for a man, but made for a woman