>> f: func [a] [a]
>> aa: first second :f
== a
>> clear second :f
== []
>> append second :f 'print
== [print]
>> append second :f aa
== [print a]
>> source f
f: func [a][print a]
>> f 3
3

-Galt

>===== Original Message From [EMAIL PROTECTED] =====
>Hi!
>
>Is there a way to get the words of the context of a function?
>
>Example:
>   f: func [a] []
>   g: func [a] [print a]
>
>Does anyone know a way to change function f AFTER its definition in that
>way, that it will work like function g?
>
>The following does not work:
>  insert second :f reduce ['print first first :f]
>
>Because the first (and third) of a function is not bound to the functions
>context.
>
>I think there is no direct way to get the word with binding, I could only
>get the words out of functions body :(
>
>I am working at a serialize script, which also serializes contexts etc.
>
>CU,
>Frank

Reply via email to