I believe the arguments of a function are local to the function. When you
use the function, other words may be used as arguments, possibly different
each time the function is called. Or you *can* use the same words, but I
feel that may not be good "style".
Non-argument words used in a function can be declared local by using the
format:
fname: func [arg 1 arg2 arg3 /local arg4 arg5 arg6][body of function using
args 1..6]
The preceding omits several additional features of the arg block (spec). See
Dictionary, created by
do %reboldoc.r
You should read the User's Guide and its Addendum. You'll find them at
www.rebol.com under language guides. The "Style" section of the addendum
discusses function styles.
Russell, [EMAIL PROTECTED]
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 24, 1999 10:06 PM
Subject: [REBOL] func question
> I created the following function for joining the information necessary
> to display a web page image in HTML.
>
> display|image: make function! [ src text.align alt ]
> [ rejoin {<IMG SRC="} src {" Align=} text.align { ALT="} alt {"
> >} ]
>
>
> My question is, if I choose to use the words in block [ src text.align
> alt ] in any other function or anywhere else in the script, could there
> be a conflict in values? Or do the values in a function remain
> entirely within the function?
>
> Thanks.
>
> Ryan Christiansen
>
>