Changeset 4571


Ignore:
Timestamp:
10/29/03 18:52:32 (19 years ago)
Author:
piso
Message:

Call STD-FINALIZE-INHERITANCE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/define-condition.lisp

    r3966 r4571  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: define-condition.lisp,v 1.2 2003-09-21 15:08:43 piso Exp $
     4;;; $Id: define-condition.lisp,v 1.3 2003-10-29 18:52:32 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    2020(in-package "SYSTEM")
    2121
     22(require 'clos)
     23
    2224(defmacro define-condition (name (&rest parent-types) (&rest slot-specs)
    2325         &body options)
    2426  (let ((parent-types (or parent-types '(condition))))
    25     `(%define-condition ',name ',parent-types ',slot-specs ',options)))
     27    (setf parent-types (mapcar #'(lambda (sym) (find-class sym)) parent-types))
     28    `(progn
     29       (std-finalize-inheritance (%define-condition ',name ',parent-types
     30                                                    ',slot-specs ',options))
     31       ',name)))
Note: See TracChangeset for help on using the changeset viewer.