Changeset 3762
- Timestamp:
- 09/14/03 16:03:26 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/lisp/subtypep.lisp
r3758 r3762 2 2 ;;; 3 3 ;;; Copyright (C) 2003 Peter Graves 4 ;;; $Id: subtypep.lisp,v 1. 6 2003-09-14 14:24:51piso Exp $4 ;;; $Id: subtypep.lisp,v 1.7 2003-09-14 16:03:26 piso Exp $ 5 5 ;;; 6 6 ;;; This program is free software; you can redistribute it and/or … … 156 156 157 157 (defun subtypep (type1 type2) 158 (when (or (null type1) (eq type2 t)) 159 (return-from subtypep (values t t))) 158 160 (setq type1 (normalize-type type1) 159 161 type2 (normalize-type type2)) … … 165 167 (i2 (cdr type2))) 166 168 (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))) 173 170 (cond ((eq t2 'atom) 174 171 (cond ((member t1 '(cons list)) (values nil t))
Note: See TracChangeset
for help on using the changeset viewer.