Changeset 8641


Ignore:
Timestamp:
02/26/05 17:38:11 (16 years ago)
Author:
piso
Message:

COERCE: call EXPAND-DEFTYPE before giving up if all else fails.

File:
1 edited

Legend:

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

    r6269 r8641  
    11;;; coerce.lisp
    22;;;
    3 ;;; Copyright (C) 2004 Peter Graves
    4 ;;; $Id: coerce.lisp,v 1.5 2004-03-16 00:57:48 piso Exp $
     3;;; Copyright (C) 2004-2005 Peter Graves
     4;;; $Id: coerce.lisp,v 1.6 2005-02-26 17:38:11 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    1818;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    1919
    20 (in-package "SYSTEM")
     20(in-package #:system)
    2121
    2222(defun coerce-list-to-vector (list result-type)
     
    7171         (concatenate result-type object))
    7272        (t
     73         (let ((expanded-type (expand-deftype result-type)))
     74           (unless (eq expanded-type result-type)
     75             (return-from coerce (coerce object expanded-type))))
    7376         (coerce-error object result-type))))
Note: See TracChangeset for help on using the changeset viewer.