- Timestamp:
- 2016-06-08T21:11:16-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/integer-ring.lisp
r4425 r4426 33 33 (format stream "VALUE=~A" value)))) 34 34 35 (defmethod shared-initialize : before((self integer-ring) slot-names35 (defmethod shared-initialize :around ((self integer-ring) slot-names 36 36 &rest initargs 37 &key value) 38 (declare (ignore initargs)) 39 (assert (integerp value) nil "When initializing INTEGER-RING, argument VALUE must be an integer, got ~S." value)) 37 &key (value nil value-supplied-p)) 38 "Checks the argument VALUE. Calls error if it is not an integer." 39 (declare (ignore initargs)) 40 (when value-supplied-p 41 (assert (integerp value) nil "When initializing INTEGER-RING, argument VALUE must be an integer, got ~S." value)) 42 (call-next-method)) 40 43 41 44 … … 48 51 (-1 self) 49 52 (t 53 (warn "In UNARY-INVERSE with argument ~S, conversion from INTEGER-RING to RATIONAL-FIELD." self) 50 54 (unary-inverse (change-class self 'rational-field)))))) 51 55
Note:
See TracChangeset
for help on using the changeset viewer.