Changeset 3762


Ignore:
Timestamp:
09/14/03 16:03:26 (20 years ago)
Author:
piso
Message:

Work in progress.

File:
1 edited

Legend:

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

    r3758 r3762  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: subtypep.lisp,v 1.6 2003-09-14 14:24:51 piso Exp $
     4;;; $Id: subtypep.lisp,v 1.7 2003-09-14 16:03:26 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    156156
    157157(defun subtypep (type1 type2)
     158  (when (or (null type1) (eq type2 t))
     159    (return-from subtypep (values t t)))
    158160  (setq type1 (normalize-type type1)
    159161        type2 (normalize-type type2))
     
    165167        (i2 (cdr type2)))
    166168    (unless (or i1 i2)
    167       (cond ((or (eq t1 nil) (eq t2 t))
    168              (return-from subtypep (values t t)))
    169             ((eq t2 nil)
    170              (return-from subtypep (values nil t)))
    171             (t
    172              (return-from subtypep (values (simple-subtypep t1 t2) t)))))
     169      (return-from subtypep (values (simple-subtypep t1 t2) t)))
    173170    (cond ((eq t2 'atom)
    174171           (cond ((member t1 '(cons list)) (values nil t))
Note: See TracChangeset for help on using the changeset viewer.