type: defined macro (closure) location: extension source file: init.lsp Common LISP compatible: similar supported on: all machines
(defparameter <symbol> <init-value> ) <symbol> - an expression evaluating to a symbol <init-value> - an initial value expression
The DEFPARAMETER macro defines a user parameter (variable) with the name <symbol>. A user parameter is supposed to be a variable that should not change but is allowed to change. The <symbol> is created with the initial value <init-value> expression. If <symbol> did exist, its previous value will be overwritten. DEFPARAMETER returns the <symbol> as its result.
(boundp 'mvyar) ; returns NIL - doesn't exist (defparameter myvar 7) ; returns MYVAR (boundp 'myvar) ; returns T myvar ; returns 7
BUG: In Common LISP, the definition of DEFPARAMETER is such that it returns the <symbol> as its result. XLISP returns the value of <symbol>.
COMMON LISP COMPATIBILITY: Common LISP supports an additional optional parameter. This parameter is a documentation string. XLISP does not support this.
NOTE: The functions DEFVAR, DEFPARAMETER and DEFCONSTANT are created in the INIT.LSP file. If it does not exist in your XLISP system, you might be having a problem with INIT.LSP. Before you start XLISP, look in the directory you are currently in, and check to see if there is an INIT.LSP.