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

[REBOL] Re: context exploration

From: rebol:svendx:dk at: 24-Jul-2000 4:13

Hello, forgot to say, that words that have the special value unset! will not be displayed. On 24-Jul-00, [rebol--svendx--dk] wrote:
> Hello, > > While playing with contexts, I threw together this little function to show the words that are defined in a context (and their values in that context). > (something like that have been discussed before AFAIR, but a 1min. search didn't find it, sooo :-) > > It goes like this: > > show-context: func [word [word!]] [ > foreach x-word next first system/words [ > if value? bind x-word :word [ > print [:x-word "|" get bind x-word :word] > ] > ] > ] > > Attached is a script that demonstrates the use of the function with contexts created with func, use and make object! > > Best regards > Thomas Jensen
Best regards Thomas Jensen