Next Prev Up Top Contents Index

def

Macro
Summary

Informs the system of a name for a definition.

Package

dspec

Signature

def dspec &body body => result

Arguments

dspec

A dspec.

body

Lisp forms, evaluated as an implicit progn .

Values

result

The result of body .

Description

The macro def informs the system that the dspec dspec is defined by the forms of body .

dspec can be non-canonical.

Example
(defmacro define-wibble (x y) 
  `(dspec:def (define-wibble ,x) 
     (set-wibble-definition ',x ',y (dspec:location))))
 
(defun set-wibble-definition (x y loc) 
  (when (record-definition `(define-wibble ,x) loc)
    ;; defining code here
    ))
See also

location


LispWorks Reference Manual - 13 Jun 2003

Next Prev Up Top Contents Index