Comment 17 for bug 1761735

Revision history for this message
MichaƂ "phoe" Herda (phoe-krk) wrote : Re: Change MAKE-CONDITION to call MAKE-INSTANCE

My use case actually does not involve calling MAKE-INSTANCE itself or causing MAKE-CONDITION to obey its protocol; I fell prey to the XY problem.

What I actually need is *any* implementation-defined way of defining a function that runs whenever an instance of given condition type is created. This specific use-case does not require that this has any kind of inheritance that CLOS's INITIALIZE-INSTANCE :AFTER has; I simply want to define a condition type FOO, and a function that will run every single time a condition of exact type FOO is instantiated.