Global functions


Table of Contents

1. New global functions in Rebol 1.2.8.3.1 (from 1.2.1.3.1)
      1.1. as-pair
      1.2. attempt
      1.3. brightness?
      1.4. build-attach-body
      1.5. build-markup
      1.6. component?
      1.7. construct
      1.8. dump-obj
      1.9. link-relative-path
      1.10. local-request-file
      1.11. notify
      1.12. remove-each
      1.13. run
      1.14. scroll-drag
      1.15. sign?
      1.16. suffix?
      1.17. unset-internal-words
2. Lost global functions in Rebol 1.2.8.3.1 (from 1.2.1.3.1)
      2.1. demo
      2.2. exists-key?
      2.3. view-install



1. New global functions in Rebol 1.2.8.3.1 (from 1.2.1.3.1)


1.1. as-pair

USAGE:

AS-PAIR x y
DESCRIPTION:

Combine X and Y values into a pair. 
AS-PAIR is a function value.
ARGUMENTS:

x -- (Type: number)
y -- (Type: number)


1.2. attempt

USAGE:

ATTEMPT value
DESCRIPTION:

Tries to evaluate and returns result or NONE on error. 
ATTEMPT is a function value.
ARGUMENTS:

value -- (Type: any)


1.3. brightness?

USAGE:

BRIGHTNESS? color
DESCRIPTION:

Returns the monochrome brightness (0.0 to 1.0) for a color value. 
BRIGHTNESS? is a function value.
ARGUMENTS:

color -- (Type: tuple)


1.4. build-attach-body

USAGE:

BUILD-ATTACH-BODY body files boundary
DESCRIPTION:

Return an email body with attached files. 
BUILD-ATTACH-BODY is a function value.
ARGUMENTS:

body -- The message body (Type: string)
files -- List of files to send [%file1.r [%file2.r "data"]] (Type: block)
boundary -- The boundary divider (Type: string)


1.5. build-markup

USAGE:

BUILD-MARKUP content /quiet
DESCRIPTION:

Return markup text replacing <%tags%> with their evaluated results. 
BUILD-MARKUP is a function value.
ARGUMENTS:

content -- (Type: string file url)
REFINEMENTS:

/quiet -- Do not show errors in the output.


1.6. component?

USAGE:

COMPONENT? name
DESCRIPTION:

Returns specific REBOL component info if enabled. 
COMPONENT? is a function value.
ARGUMENTS:

name -- (Type: word)


1.7. construct

USAGE:

CONSTRUCT block /with object
DESCRIPTION:

Creates an object, but without evaluating its specification. 
CONSTRUCT is a native value.
ARGUMENTS:

block -- Object specification block (Type: block)
REFINEMENTS:

/with -- Provide a default base object
    object -- (Type: object)


1.8. dump-obj

USAGE:

DUMP-OBJ obj /match pat
DESCRIPTION:

Returns a block of information about an object. 
DUMP-OBJ is a function value.
ARGUMENTS:

obj -- (Type: object)
REFINEMENTS:

/match -- Include only those that match a string or datatype
    pat -- (Type: any)


1.9. link-relative-path

USAGE:

LINK-RELATIVE-PATH file
DESCRIPTION:

Remove link-root from a file path 
LINK-RELATIVE-PATH is a function value.
ARGUMENTS:

file -- (Type: any)


1.10. local-request-file

USAGE:

LOCAL-REQUEST-FILE parms
DESCRIPTION:

Creates an OS-specific file requester 
LOCAL-REQUEST-FILE is a native value.
ARGUMENTS:

parms -- Parameter block (Type: block)


1.11. notify

USAGE:

NOTIFY str
DESCRIPTION:

Flashes an informational message to the user. Waits for a user response. 
NOTIFY is a function value.
ARGUMENTS:

str -- (Type: any)


1.12. remove-each

USAGE:

REMOVE-EACH 'word data body
DESCRIPTION:

Removes a value from a series for each block that returns TRUE. 
REMOVE-EACH is a native value.
ARGUMENTS:

word -- Word or block of words to set each time (will be local) (Type: get-word word block)
data -- The series to traverse (Type: series)
body -- Block to evaluate. Return TRUE to remove. (Type: block)


1.13. run

USAGE:

RUN file /as suffix
DESCRIPTION:

Runs the system application associated with a file. 
RUN is a native value.
ARGUMENTS:

file -- The file to open (file, URL) or command to run (string). (Type: file url string)
REFINEMENTS:

/as
    suffix -- (Type: string file)


1.14. scroll-drag

USAGE:

SCROLL-DRAG face /back /page
DESCRIPTION:

Move the scroller drag bar 
SCROLL-DRAG is a function value.
ARGUMENTS:

face -- the scroller to modify (Type: any)
REFINEMENTS:

/back -- move backward
/page -- move each time by one page


1.15. sign?

USAGE:

SIGN? number
DESCRIPTION:

Returns sign of number as 1, 0, or -1 (to use as multiplier). 
SIGN? is a function value.
ARGUMENTS:

number -- (Type: number money time)


1.16. suffix?

USAGE:

SUFFIX? path
DESCRIPTION:

Return the suffix (ext) of a filename or url, else NONE. 
SUFFIX? is a function value.
ARGUMENTS:

path -- (Type: any-string)


1.17. unset-internal-words

USAGE:

UNSET-INTERNAL-WORDS
DESCRIPTION:

(undocumented)



2. Lost global functions in Rebol 1.2.8.3.1 (from 1.2.1.3.1)


2.1. demo


2.2. exists-key?


2.3. view-install


Copyright Romano Paolo Tenca. All Rights Reserved.
Formatted with REBOL Make-Doc 0.9.4.2 on 31-Oct-2003 at 18:36:52