7 Additional Extensions to Common Lisp

7.8 Other extensions

The remaining extensions listed in this chapter are grouped according to functionality as follows:

Arrays
displaced-array-p

This construct identifies displaced arrays.

Destructuring
destructuring-bind

This macro destructures a list.

Evaluation
decache-eval

This function forces the reexpansion of all function bodies when they are next executed.

Interrupts
interrupts-deferred-p,with-interrupts-allowed,with-interrupts-deferred

These constructs are related to the deferral of operating system interrupts.

Lists
assq,delq,list-nreverse,list-reverse,memq

These constructs search, manipulate, and delete items from lists.

Program structure

define-function,define-macro

These constructs define new functions and macros.

Miscellaneous
delete-defstruct,deposit-byte,load-byte,parse-body,time1,xor

The functiondelete-defstruct removes a Lisp structure from the environment. The functionsdeposit-byte andload-byte are variations of the Common Lisp functionsdpb andldb respectively. The functionparse-body breaks up a macro definition into its constituent parts. The macrotime1 evaluates a given form and provides timing statistics about the execution of the form. The functionxor determines whether you have specified an odd or an even number of non-nil values.

Predicates
The following predicates are also provided without further explanation:

bignump,byte-specifier-p,fixnump,ratiop,sequencep,simple-array-p,simple-bit-array-p,string-output-stream-p,string-stream-p,type-specifier-p

These predicates test to see if their arguments are of the specified type.

7.8.1 - Reference pages

The Advanced User's Guide - 9 SEP 1996

Generated with Harlequin WebMaker