All Manuals > LispWorks® User Guide and Reference Manual > 35 The DSPEC Package

location Macro

Summary

Returns the source location.

Package

dspec

Signature

location => location

Values
location
A pathname or a keyword.
Description

The macro location returns a location suitable for passing to record-definition. This is usually done via a separate defining function. You will need to use location only if you create your own ways of making definitions (and not if your definers call only system-provided definers).

Examples
(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

at-location
def
record-definition


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:33