The `macrolet' macro expansion explicitly references the function
defined in the `flet' form, so probably they should be the other way
out.
-(macrolet ((define-layout-slot (slot (class) &body body)
- `(define-on-demand-slot sod-class ,slot (,class)
- (check-class-is-finalized ,class)
- ,@body)))
- (flet ((check-class-is-finalized (class)
- (unless (eq (sod-class-state class) :finalized)
- (error "Class ~S is not finalized" class))))
+(flet ((check-class-is-finalized (class)
+ (unless (eq (sod-class-state class) :finalized)
+ (error "Class ~S is not finalized" class))))
+ (macrolet ((define-layout-slot (slot (class) &body body)
+ `(define-on-demand-slot sod-class ,slot (,class)
+ (check-class-is-finalized ,class)
+ ,@body)))
(define-layout-slot %ilayout (class)
(compute-ilayout class))
(define-layout-slot effective-methods (class)
(define-layout-slot %ilayout (class)
(compute-ilayout class))
(define-layout-slot effective-methods (class)