[EMAIL PROTECTED] wrote:
> Hi,
>
> [...]
>
> > BTW, how about a link to the creation-point of a value?
> > this would help me, i often have this "you need a block here!"
> > and have to look around where the var is assigned,
> > especially when using locals (no good look-in).
> > Exec-Lists had such a debug-text-field :)
> >
> > BTW2: What happens if i change the body of a running function
> yet?!
> >
> > Volker
> >
>
> BTW: I cannot imagine any simple way how to accomplish it.
>
> BTW2: If you change the body of a running function, the behaviour
> of it changes (a self modifying code).
>
REBOL []
x: func [par1 par2][
print "inside function 'x"
print par1
print "+"
print par2
count par1 par2
]
count: func [parm1 parm2][
print "----------"
print parm1 + parm2
insert tail second :x compose [+ random 300]
]
print "Original function: "
print mold :x
x 100 25
print newline
print "Inline changed function: "
x 100 30
print mold :x
:-) Just note the last line:
count par1 par2 + random 300 + random 300
Why random 300 is there two times?
-pekr-
>
> Ladislav