[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Autoloading macros.
- To: DEVON at MIT-MC
- Subject: Autoloading macros.
- From: George J. Carrette <GJC at MIT-MC>
- Date: Wed, 10 Feb 82 16:29:00 GMT
- Cc: BUG-LISP at MIT-MC
- Original-date: 10 February 1982 11:29-EST
In order to have autoloading macros in the compiler you have to do
[1] (DEFPROP FOO "FOO;BAR" AUTOLOAD)
[2] (DEFPROP FOO AUTOLOAD-MACRO MACRO)
where:
(DEFUN AUTOLOAD-MACRO (FORM)
(REMPROP (CAR FORM) 'MACRO)
(LOAD (GET (CAR FORM) 'AUTOLOAD))
(OR (GET (CAR FORM) 'MACRO) (ERROR "Macro not autoloaded" (CAR FORM)))
FORM)