Ryan wrote:
> 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?

        Why not ask REBOL?

>> src: 123
== 123
>> text.align: 456
== 456
>> alt: 789
== 789
>> display|image http://www.provider.com/picture.gif "left" "A picture
to look at"
** Script Error: rejoin expected block argument of type: block.
** Where: rejoin {<IMG SRC="} src {" Align=} text.align

Seems like a little bug...

>> display|image: make function! [ src text.align alt ] [
[    rejoin [{<IMG SRC="} src {" Align=} text.align { ALT="} alt {">}]]
>> display|image http://www.provider.com/picture.gif "left" "A picture
to look at"
== {<IMG SRC="http://www.provider.com/picture.gif" Align=left ALT="A
picture to look at">}
>> src
== 123
>> text.align
== 456
>> alt
== 789

I think that should answer your question.

For an easier way to do this, check out %HTML.r, %Nest.r and %Include.r
from http://www.rebol.org

Andrew Martin
Simplicity...
[EMAIL PROTECTED]
http://members.xoom.com/AndrewMartin/
Online @ 33,600 Baud!
-><-

Reply via email to