[REBOL] Re: [bind] Patrick's pages ; using 'local ; using bind/copy
From: g::santilli::tiscalinet::it at: 15-May-2003 9:53
Hi Marc,
On Wednesday, May 14, 2003, 11:15:42 PM, you wrote:
MM> Practically, when a function is created with the word 'function
MM> (and I personnally prefer this fully explicit construction over
MM> the 'func 'has 'does and even make function! ...)
MM> 'local is allways available (yields none if unused in the call of the
MM> function).
>> source function
function: func [
"Defines a user function with local words."
spec [block!] {Optional help info followed by arg words (and optional type and string)}
vars [block!] "List of words that are local to the function"
body [block!] "The body block of the function"
][
make function! head insert insert tail copy spec /local vars body
]
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r