[REBOL] Re: Competition - There must be a better way to .....
From: pwawood::gmail::com at: 25-Nov-2007 18:56
The code that I posted seems to do what I want: it finds new variables in
the code to be tested, adds equivalent words to the context and then binds
the code to be tested to the context for the test code.
I think there must be a better way to do what I want which is why I started
As for the function, you may be thinking of first which when applied on a
function gives the argument block; second gives the body of the function.
>> first :append
== [series value /only]
>> second :append
head either only [
insert/only tail series :value
insert tail series :value
If first is applied to an object, you get a list of the members including
>> a: make object! [
[ b: 1
[ c: 2
[ d: 3
>> first a
== [self b c d]
On 25/11/2007, Alessandro Manotti <ale870-gmail.com> wrote: