Skip to content

Commit

Permalink
Made sure Lisps without Closer-MOP will load Modf.
Browse files Browse the repository at this point in the history
  • Loading branch information
smithzvk committed Jul 6, 2011
1 parent 576260e commit 2a4ca67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modf.lisp
Expand Up @@ -213,6 +213,7 @@ functions ahead of time."
new-val obj args )) new-val obj args ))
;; Check to see if this is a generic function and there are no extra ;; Check to see if this is a generic function and there are no extra
;; arguments (which means it might be a class slot accessor) ;; arguments (which means it might be a class slot accessor)
#+closer-mop
((and (not args) ((and (not args)
(typep (symbol-function func) 'generic-function) ) (typep (symbol-function func) 'generic-function) )
(late-class-reader-inverter func new-val obj) ) (late-class-reader-inverter func new-val obj) )
Expand All @@ -228,6 +229,7 @@ functions ahead of time."
(eval `(setf (,func ,new-struct) ',new-val)) (eval `(setf (,func ,new-struct) ',new-val))
new-struct )))) new-struct ))))


#+closer-mop
(defun late-class-reader-inverter (func new-val obj) (defun late-class-reader-inverter (func new-val obj)
#+ecl #+ecl
;; ECL seems to work a bit more intuitively. Effective slots know their ;; ECL seems to work a bit more intuitively. Effective slots know their
Expand Down

0 comments on commit 2a4ca67

Please sign in to comment.