SYMBOL FUNCTIONS



SET THE GLOBAL VALUE OF A SYMBOL

(set <sym> <expr>)


SET THE VALUE OF A SYMBOL

(setq [<sym> <expr>]...)

fsubr


PARALLEL VERSION OF SETQ

(psetq [<sym> <expr>]...)

fsubr. All expressions are evaluated before any assignments are made.


SET THE VALUE OF A FIELD

(
setf [<place> <expr>]...)

fsubr


PARALLEL VERSION OF SETF

(
psetf [<place> <expr>]...)

fsubr. All expressions are evaluated and macro place forms expanded before any assignments are made.


DEFINE A SETF FIELD SPECIFIER

(
defsetf <sym> <fcn>)

(defsetf <sym> <fargs> (<value>) <expr>...)

Defined as macro in common.lsp. Convenient, Common Lisp compatible alternative to setting *setf* or *setf-lambda* property directly.


CONS TO A FIELD

(
push <expr> <place>)

Defined as macro in common.lsp. Only evaluates place form arguments one time. It is recommended that *displace-macros* be non-NIL for best performance.


CONS NEW TO A FIELD

(
pushnew <expr> <place> &key :test :test-not :key)

Defined as macro in common.lsp. Only evaluates place form arguments one time. It is recommended that *displace-macros* be non-NIL for best performance.


REMOVE FIRST ELEMENT OF A FIELD

(
pop <place>)

Defined as macro in common.lsp. Only evaluates place form arguments one time. It is recommended that *displace-macros* be non-NIL for best performance.


INCREMENT A FIELD

(
incf <place> [<value>])

DECREMENT A FIELD

(decf <place> [<value>])

Defined as macro in common.lsp. Only evaluates place form arguments one time. It is recommended that *displace-macros* be non-NIL for best performance.


DEFINE A FUNCTION

(
defun <sym> <fargs> <expr>...)

DEFINE A MACRO

(defmacro <sym> <fargs> <expr>...)

fsubr


GENERATE A SYMBOL

(gensym [<tag>])


MAKE AN INTERNED SYMBOL

(
intern <pname> [<package>])


MAKE AN UNINTERNED SYMBOL

(make-symbol <pname>)


GET THE PRINT NAME OF A SYMBOL

(symbol-name <sym>)


GET THE VALUE OF A SYMBOL

(symbol-value <sym>)


GET THE FUNCTIONAL VALUE OF A SYMBOL

(symbol-function <sym>)


GET THE PROPERTY LIST OF A SYMBOL

(symbol-plist <sym>)


COMPUTE THE HASH INDEX

(hash <expr> <n>)


MAKE A SYMBOL VALUE BE UNBOUND

(
makunbound <sym>)

You cannot unbind constants.


MAKE A SYMBOL FUNCTION BE UNBOUND

(
fmakunbound <sym>)


UNINTERN A SYMBOL

(unintern <sym> [<package>])

Defined in common.lsp if package feature not compiled.


DEFINE A CONSTANT

(
defconstant <sym> <val> [<comment>])

fsubr.


DEFINE A PARAMETER

(
defparameter <sym> <val> [<comment>])

fsubr.


DEFINE A VARIABLE

(
defvar <sym> [<val> [<comment>]])

fsubr. Variable only initialized if not previously defined.


SET SPECIAL ATTRIBUTE

(
mark-as-special <sym> [<flag>])

Also see definition of PROCLAIM and DECLARE.


DECLARE ARGUMENT ATTRIBUTES

(
declare [<declaration> ...])

Macro in common.lsp provided to assist in porting Common Lisp applications to XLISP-PLUS.


PROCLAIM GLOBAL SYMBOL ATTRIBUTES

(
proclaim <proc>)

Function in common.lsp provided to assist in porting Common Lisp applications to XLISP-PLUS.


XLISP-PLUS - Version 2.1g - Tom Almy tom.almy@tek.com - 18 JUL 94
Generated with
WebMaker