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
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ functions ahead of time."
new-val obj args ))
;; Check to see if this is a generic function and there are no extra
;; arguments (which means it might be a class slot accessor)
#+closer-mop
((and (not args)
(typep (symbol-function func) 'generic-function) )
(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))
new-struct ))))

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

0 comments on commit 2a4ca67

Please sign in to comment.