Ignore:
Timestamp:
09/14/03 17:57:45 (20 years ago)
Author:
piso
Message:

TYPEP: AND, OR

File:
1 edited

Legend:

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

    r3751 r3783  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: typep.lisp,v 1.3 2003-09-14 12:25:27 piso Exp $
     4;;; $Id: typep.lisp,v 1.4 2003-09-14 17:57:45 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    4343        (i (cdr type)))
    4444    (case tp
     45      (AND
     46       (dolist (type i)
     47         (unless (typep object type)
     48           (return-from typep nil)))
     49       t)
     50      (OR
     51       (dolist (type i)
     52         (when (typep object type)
     53           (return-from typep t)))
     54       nil)
    4555      (SIMPLE-BIT-VECTOR
    4656       (and (simple-bit-vector-p object)
Note: See TracChangeset for help on using the changeset viewer.