Changeset 4814


Ignore:
Timestamp:
11/17/03 18:35:06 (18 years ago)
Author:
piso
Message:

TYPEP: added FLOAT support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/typep.lisp

    r4810 r4814  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: typep.lisp,v 1.12 2003-11-17 16:31:01 piso Exp $
     4;;; $Id: typep.lisp,v 1.13 2003-11-17 18:35:06 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    7676            (or (null (car i)) (eq (car i) '*) (typep (car object) (car i)))
    7777            (or (null (cadr i)) (eq (cadr i) '*) (typep (cdr object) (cadr i)))))
     78      (FLOAT
     79       (and (floatp object) (in-interval-p object i)))
    7880      (INTEGER
    7981       (and (integerp object) (in-interval-p object i)))
Note: See TracChangeset for help on using the changeset viewer.