Re: MAKE-INSTANCE and STRUCTURE-CLASS

"Tim Bradshaw (as tfb at cley dot com)" <[email protected]> Sun, 5 Jul 2026 19:02:25 +0100
Newsgroups gmane.lisp.lispworks.general,gmane.lisp.cl-pro
Message-ID <[email protected]>
On 5 Jul 2026, at 18:45, Tim Bradshaw (as tfb at cley dot com) <[email protected]> wrote:
> 
> If you care about portable code then you don't.

Just to be clear: make-instance has two methods defined by the standard: one for standard-class and one for symbols, which just calls find-class on its first argument and recurses.

There is no method for structure-class.  You can't write such a method portably.

If an implementation has such a method (which I think it is allowed to have, probably), then presumably it also implements initialize-instance &c in something like the usual way although it would have to talk about how & whether slots get initialized especially if you have defined a BOA constructor &c.

--tim

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html