[REBOL] Re: basics: meaning and uses of make object! vs. context
From: ingo:2b1 at: 11-Jun-2002 14:25
Now answering my own email ...
Ingo Hohmann wrote:
> Ammon Johnson wrote:
>> Use the SOURCE, Luke! The SOURCE will not fail you... ;-)
> Unless it does, of course ...
> >> a: make object! [ blk: [ print "HI" ] set 'f func [ do blk ]]
> >> f
> >> source f
> f: func [do blk]
> >> blk
> ** Script Error: blk has no value
> ** Near: blk
Of course, given Rebols inspection abilities, you _can_ get to the source:
>> second :f ; gives you the functions body
== [do blk]
>> second second :f ; the second element in the function body
>> get second second :f ; and, at last, the value of 'blk
== [print "HI"]
Sometimes you need to dig a little ...