Changeset 5138


Ignore:
Timestamp:
12/15/03 01:53:24 (17 years ago)
Author:
piso
Message:

TYPEP: support DEFTYPEs.

File:
1 edited

Legend:

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

    r4814 r5138  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: typep.lisp,v 1.13 2003-11-17 18:35:06 piso Exp $
     4;;; $Id: typep.lisp,v 1.14 2003-12-15 01:53:24 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    5656(defun typep (object type)
    5757  (when (atom type)
    58     (return-from typep (simple-typep object type)))
     58    (unless (and (symbolp type) (get type 'deftype-definition))
     59      (return-from typep (simple-typep object type)))
     60    (setf type (subtypep-normalize-type type))
     61    (when (atom type)
     62      (return-from typep (simple-typep object type))))
    5963  (let ((tp (car type))
    6064        (i (cdr type)))
Note: See TracChangeset for help on using the changeset viewer.