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

[REBOL] Re: context question

From: anton::wilddsl::net::au at: 3-Sep-2007 22:06

No worries. Context /deep; That sort of thing is coming in Rebol 3 (with modules). But it's possible to make your own function which searches deeply for set-words when constructing a new object. eg: context-deep: func [spec][ ; 1 search spec block recursively for set-words and collect them ; 2 create new object containing each found set-word ; 3 DO a copy of the spec, bound to the new object. ; 4 return the object ] Something similar to that. I have probably forgotten if Ladislav or Gabriele has already done something like this. Check Ladislav's site. Anton.