make-instance
(in conjunction with initialize-instance
) creates an instance of a circle as follows:
make-instance
creates an empty instance. make-instance
passes the instance and the other arguments to initialize-instance
. initialize-instance
first uses any explicit initargs that you gave to make-instance
.So one difference is that default initargs take priority over initforms.
———-
This suggests that your default initargs (Apple tried to make that “unitards”!) should, in fact, shadow the initforms.On December 22, 2021 at 05:18:58, Attila Lendvai (attila@lendvai.name) wrote:
dear list,i wanted to set the default-component-class of our own system subclass using :default-initargs, but it's ignored because the slot has a :initform (as opposed to setting the default value using a :default-initargs entry).in the current ASDF setup, i need to override the slot (or the accessor method), which involves messing with internal symbols.if ASDF used :default-initargs then i could just override that using a :default-initargs entry on my own subclass (IIUC).i'm sending it for your consideration, it's not a pressing issue on my side.- attilaPGP: 5D5F 45C7 DFCD 0A39