close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 4316 for branches


Ignore:
Timestamp:
2016-06-04T23:23:21-07:00 (8 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/rational-field.lisp

    r4315 r4316  
    110110  (rational-field-value self))
    111111
     112(defparameter *rational-field-zero* (make-instance 'rational-field :value 0))
     113(defparameter *rational-field-unit* (make-instance 'rational-field :value 1))
     114
    112115(defmethod make-zero-for ((object rational-field))
    113116  ;; NOTE: Always the same object is returned
    114   #.(make-instance 'rational-field :value 0))
     117  *rational-field-zero*)
    115118
    116119(defmethod make-unit-for ((object rational-field))
    117120  ;; 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.