[REBOL] Re: context exploration
From: rebol:svendx:dk at: 24-Jul-2000 4:13
forgot to say, that words that have the special value unset! will not be displayed.
On 24-Jul-00, [rebol--svendx--dk] wrote:
> 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