Changeset 4316
- Timestamp:
- 2016-06-04T23:23:21-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/rational-field.lisp
r4315 r4316 110 110 (rational-field-value self)) 111 111 112 (defparameter *rational-field-zero* (make-instance 'rational-field :value 0)) 113 (defparameter *rational-field-unit* (make-instance 'rational-field :value 1)) 114 112 115 (defmethod make-zero-for ((object rational-field)) 113 116 ;; NOTE: Always the same object is returned 114 #.(make-instance 'rational-field :value 0))117 *rational-field-zero*) 115 118 116 119 (defmethod make-unit-for ((object rational-field)) 117 120 ;; NOTE: Always the same object is returned 118 #.(make-instance 'rational-field :value 1))121 (make-instance 'rational-field :value 1))
Note:
See TracChangeset
for help on using the changeset viewer.