- Timestamp:
- 2015-06-21T11:32:54-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/ring.lisp
r2870 r2877 213 213 (slot-value object slot-name)))) 214 214 (apply #'reinitialize-instance copy initargs)))) 215 216 (defun shallow-copy-object (original) 217 (let* ((class (class-of original)) 218 (copy (allocate-instance class))) 219 (dolist (slot (mapcar #'slot-definition-name (class-slots class))) 220 (when (slot-boundp original slot) 221 (setf (slot-value copy slot) 222 (slot-value original slot)))) 223 copy))
Note:
See TracChangeset
for help on using the changeset viewer.