[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: default-initargs questio



        Reply to:   RE>default-initargs question
It can't be an error at class compilation because you may 
add a shared-initialize, initialize-instance, or other such 
method that gladly accepts the :x keyword.  For the doubled 
mention, it's no different than using double mentions on 
any other function call 
[e.g., (member alpha target :test #'equal :test #'eq)].  I believe 
this is legal and the method will take the first mention.

>From my understanding of :default-initargs, they could be 
implemented by just appending them to the explicit arglist 
on all calls to make-instance, redefine-instance-for-changed-class, 
etc.  Thus, the keywords would often appear more than once.

--------------------------------------
Date: 5/3/95 10:43 AM
To: Don Mitchell
...
I noticed that the following simple defclass does not cause an error:

(defclass person () () (:default-initargs :x 5 :x 6))

Of course, if you attempt to do a make-instance on person you get an error:
...