[REBOL] Trying to compose a block out of global and local bindings
From: princepawn::lycos::com at: 7-Sep-2000 13:02
>> letter2: func [b /local name] [foreach n ["sally" "sue"][ name: n print reform reduce
b] ]
>> form
== ["hi" name "welcome back"]
>> name
== "bob"
>> letter2 form
hi bob welcome back
hi bob welcome back
... the only problem is I was hoping that the loop values in letter2 would take precedence
over the globally bound value of name and allow me to create a form letter of sorts.
Could anyone help with this please?
Librarian comment