Changeset 3758


Ignore:
Timestamp:
09/14/03 14:24:51 (19 years ago)
Author:
piso
Message:

Work in progress.

File:
1 edited

Legend:

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

    r3739 r3758  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: subtypep.lisp,v 1.5 2003-09-14 01:38:42 piso Exp $
     4;;; $Id: subtypep.lisp,v 1.6 2003-09-14 14:24:51 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    3737             (FIXNUM INTEGER)
    3838             (FLOAT REAL)
     39             (HASH-TABLE)
    3940             (INTEGER RATIONAL)
    4041             (KEYWORD SYMBOL)
     
    170171            (t
    171172             (return-from subtypep (values (simple-subtypep t1 t2) t)))))
    172     (cond ((eq t2 'sequence)
     173    (cond ((eq t2 'atom)
     174           (cond ((member t1 '(cons list)) (values nil t))
     175                 ((known-type-p t1) (values t t))
     176                 (t (values nil nil))))
     177          ((eq t2 'sequence)
    173178           (values (simple-subtypep t2 t2) t))
    174179          ((eq t2 'simple-string)
Note: See TracChangeset for help on using the changeset viewer.