expand-pointIntervalsinterval-endinfinite-intervalGoTo Top

infinite-interval   [Constant]

Purpose
An interval (represented as a cons) from -infinity to infinity.

Package   :gbbopen

Module   :gbbopen-core

Value type   A cons

Value   (-infinity . infinity)

See also
    copy-interval
    expand-interval
    interval-end
    interval-start
    interval-values
    make-interval
    nexpand-interval
    nshift-interval
    shift-interval

Example
Define a unit class, temporal-duration-mixin, that contains a temporal-duration slot and dimension value declaration:

  > (define-unit-class temporal-duration-mixin ()
      ((temporal-duration 
         ;; Copy the interval to allow destructive changes by
         ;; GBBopen's interval operators:
         :initform (copy-interval infinite-interval)))
      (:dimensional-values
       (temporal-duration :interval temporal-duration)))
  #<standard-unit-class temporal-duration-mixin>
  >


The GBBopen Project


expand-pointIntervalsinterval-endinfinite-intervalGoTo Top