|
|
|
|
|
by 9214
2783 days ago
|
|
Rebol family of languages (including Red) uses near equivalents of fexprs. Here's a self-modifying function ;^) >> foo: has [x][append body-of context? 'x [+ 1] 1]
== func [/local x][append body-of context? 'x [+ 1] 1]
>> loop 3 [probe foo]
1
2
3
== 3
>> ?? foo
foo: func [/local x][append body-of context? 'x [+ 1] 1 + 1 + 1 + 1]
|
|