Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

quote

quote

type: special form (fsubr)
location: built-in
source file: xlcont.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(quote <expr> )
        <expr>          -       an expression

DESCRIPTION

QUOTE returns the the <expr> un-evaluated.

EXAMPLES

my-var                                  ; error: unbound variable 
(quote my-var)                          ; returns MY-VAR
my-var                                  ; still error: unbound variable
(set (quote my-var) 111)                ; give MY-VAR a value - 
                                        ;   make it exist
my-var                                  ; returns 111
(quote my-var)                          ; returns MY-VAR
                                        ;
                                        ; SAME AS ABOVE BUT USING THE 
                                        ; READ MACRO FOR QUOTE - '
new-var                                 ; error: unbound variable
'new-var                                ; returns NEW-VAR
new-var                                 ; still error: unbound variable
(setq new-var 222)                      ; give NEW-VAR a value -
                                        ;   make it exist
new-var                                 ; returns 222
'new-var                                ; returns NEW-VAR

READ MACRO: XLISP supports the normal read macro of a single quote as a short-hand method of writing the QUOTE function.


Go to the first, previous, next, last section, table of contents.