Ignore:
Timestamp:
12/10/03 02:54:40 (18 years ago)
Author:
piso
Message:

CANONICALIZE-DIRECT-SLOT: check for duplicate :TYPE options.

File:
1 edited

Legend:

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

    r5042 r5043  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: clos.lisp,v 1.23 2003-12-10 02:48:40 piso Exp $
     4;;; $Id: clos.lisp,v 1.24 2003-12-10 02:54:40 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    9494            (initform nil)
    9595            (initargs ())
     96            (type nil)
    9697            (readers ())
    9798            (writers ())
     
    110111            (:initarg
    111112             (push-on-end (cadr olist) initargs))
     113            (:type
     114             (when type
     115               (error 'program-error
     116                      "duplicate slot option :TYPE for slot named ~S"
     117                      name))
     118             (setf type (cadr olist)))
    112119            (:reader
    113120             (push-on-end (cadr olist) readers))
Note: See TracChangeset for help on using the changeset viewer.