Re: :initform vs. :default-initargs

2021-12-22 Thread Robert Goldman
Yes, that is right. `parse-defsystem` calls `change-class`. I will set up an issue for this, and put you on the cc list. On 22 Dec 2021, at 10:49, Attila Lendvai wrote: i think i know why this is happening. i have attached a test that has the two versions that i have talked about. the

Re: ASDF tools/release.lisp and PGP keys

2021-12-22 Thread Robert Goldman
Thanks for the note! I'm not sure what to do about this, since I don't use the "asdf/tools" myself. I never figured out how to debug the lisp scripts there, so I have stuck to the old code that is based on bash and make. That looks like code that is probably related to the creation of Debian

Re: :initform vs. :default-initargs

2021-12-22 Thread Attila Lendvai
i think i know why this is happening. i have attached a test that has the two versions that i have talked about. the slot override works, but the default-initarg doesn't. ASDF probably calls change-class, probably from reset-system-class, which invokes reinitialize-instance directly, and

Re: :initform vs. :default-initargs

2021-12-22 Thread Attila Lendvai
> Yes, this works as expected for me: > > (defclass foosys (asdf/system:system) > () > (:default-initargs :default-component-class 'foo)) > > (asdf/component:module-default-component-class (make-instance 'foosys)) => foo indeed. after Robert's mail i also tried this, and it worked, yet i'm seeing

Re: :initform vs. :default-initargs

2021-12-22 Thread Martin Simmons
Yes, this works as expected for me: (defclass foosys (asdf/system:system) () (:default-initargs :default-component-class 'foo)) (asdf/component:module-default-component-class (make-instance 'foosys)) => foo -- Martin Simmons LispWorks Ltd http://www.lispworks.com/ > On Wed, 22 Dec

Re: :initform vs. :default-initargs

2021-12-22 Thread Robert P. Goldman
I don’t fully understand the issue. I followed up the reference you posted, and the follow-on reference to Chris Riesbeck’s web page, and there I see the following: make-instance (in conjunction with initialize-instance) creates an instance of a circle as follows: make-instance creates an

:initform vs. :default-initargs

2021-12-22 Thread Attila Lendvai
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