excellent thanks.  

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 15, 2000 10:37 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] DOES Re:



----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 1:56 AM
Subject: [REBOL] DOES


> Does anyone know where to find the documentation for the DOES command.
>
>

Use does when your function does not require arguments or locals.

e.g instead of using func with a an empty arg block
print-hello: func [][print "Hello"]

use
print-hello: does [print "Hello"]


> ? does
USAGE:
    DOES body

DESCRIPTION:
     Defines a function that has no arguments or locals.
     DOES is a function value.

ARGUMENTS:
     body -- The body block of the function (Type: block)

(SPECIAL ATTRIBUTES)
     catch

It is also documented in notes.html for core 2.3

Does
Use does to create functions with out arguments or locally defined words.
For example:
get-script-dir: does [probe system/options/path]
probe get-script-dir
%/usr/local/rebol/

Cheers,

Allen K

Reply via email to