Functions vs Blocks
REBOL blocks look a lot like functions in other languages, but they are
very different. If you just DO a block, REBOL returns the last item in
the block, it does not assume that it is a sub-script to be evaluated.
If you would like to create a custom block for use as an email message,
or whatever, as Andrew says, make a function to create the block, and
have the function return the block. REBOL functions can return any
value, including blocks.
Also, when building a script in REBOL, it is often helpful to test each
piece at the console interactively. You can paste in the functions, one
by one, to be sure you are seeing any error messages.
-Ted.
*********** REPLY SEPARATOR ***********
On 1/18/2000 at 12:57 AM [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
> temailready: [
<snip!>
> do temailready
> ]
> do temailready
I'm not quite sure what your intent is here.
Do you know about functions yet?
Your code could be better written as:
temailready: func [] [
; blah blah blah
]
then run, by simply writing:
temailready
I hope that helps!
Andrew Martin
Rocket-ing through the 'net...
ICQ: 26227169
[EMAIL PROTECTED]
http://members.xoom.com/AndrewMartin/
-><-