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 3309 for branches


Ignore:
Timestamp:
2015-06-23T09:39:50-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3308 r3309  
    101101
    102102  ;; when all exponents are to be identical
    103   (if exponent-supplied-p
     103  (when exponent-supplied-p
    104104    (when (slot-boundp self 'exponents)
    105       (warn "Ignoring argument EXPONENT."))
     105      (warn "Ignoring argument EXPONENT.")
     106      (return-from 'initialize-instance))
    106107    (cond
    107108      ((slot-boundp self 'dimension)
    108        (error "Slot DIMENSION is unbound, but must be known if EXPONENT is supplied."))
    109       (t
    110109       (let ((dim (slot-value self 'dimension)))
    111110         (setf (slot-value self 'exponents)
    112111               (make-array (list dim) :initial-element (if exponent-supplied-p exponent 0)
    113                            :element-type 'exponent)))))))
     112                           :element-type 'exponent))))
     113      (t 
     114       (error "Slot DIMENSION is unbound, but must be known if EXPONENT is supplied.")))))
    114115
    115116(defmethod r-equalp ((m1 monom) (m2 monom))
Note: See TracChangeset for help on using the changeset viewer.