[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default-initargs questio
- To: "Info-mcl" <info-mcl@digitool.com>, "paul hasse" <uunet!NSDGATE3.nsd.fmc.com!paul_hasse@uunet.uu.net>
- Subject: Re: default-initargs questio
- From: "Don Mitchell" <proact!dhm@uunet.uu.net>
- Date: 3 May 1995 11:33:36 -0600
- Sender: owner-info-mcl@digitool.com
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:
...