Hi Giuseppe,
yes, you can follow this way.
Example based on the yours one:
>> template: make object! [
[ f1: func [a b] [a + b]
[ f2: func [a b] [a * b]
[ v1: now
[ v2: []
[ v3: copy []
[ ]
>>
>> a1: func [a b] [a + b]
>>
>> inst1: make template [f1: :a1]
>> inst2: make template [f1: :a1]
>>
>> inst1/f1 3 5
== 8
>>
>> cc: bind [a * b] first second get 'a1
== [a * b]
>>
>> insert clear second get 'a1 cc
== []
>>
>> inst1/f1 3 5
== 15
> template: make object! [
> f1: func [a b] [a + b]
> f2: func [a b] [a * b]
> v1: now
> v2: []
> v3: copy []
> ]
>
> Could I change the template into this:
>
> a1: func [a b] [a + b]
>
> inst1: make template [f1: :a1]
> inst2: make template [f1: :a1]
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.