REBOL Document

Alias - Function Summary


Creates an alternate spelling for a word.


alias word name


word - Word to alias (must be: word)

name - Name of alias (must be: string)


Create an alias for a word. The alias will be identical in every respect to the aliased word (symbol comparison and value referencing). Be careful not to confuse alias with setting another word to the same value. The alias cannot be set if the word already appears anywhere within the script or has been used in any way prior to being aliased.

    alias 'print "stampa"
    do {stampa "MONDO Rebol"}
    MONDO Rebol


get - Gets the value of a word.
set - Sets a word or block of words to specified value(s).

User Comments:

-From: 7-Dec-2000/2:39:35-8:00:

Notice that ALIASes work for refinements and dialects too.

<Back | Index | Next>

Copyright 2004 REBOL Technologies