[REBOL] context of a function - Enhancement request Re:(2)
From: fsievert:uos at: 22-Aug-2000 14:21
On Mon, 21 Aug 2000 [rebol--techscribe--com] wrote:
> BTW
>
> >same? first second :f in :f 'a
> >== true
>
> does not work for objects:
>
> >> o: make object! [a: none b: none]
> >> second first :o
> == a
> >> in :o 'a
> == a
> >> same? (second first :o) (in :o 'a)
> == false
>
> so I wouldn't expect it to work for functions either.
second :f functions body. So I woulc expect, that same? would
return true. Equivalent to object would be:
>> o: make object! [sth: [a] a: 9]
>> same? first second second o bind 'a in o 'self
== true
CU,
Frank