[Openmcl-devel] [off-topic] Adding a slot to a class using the MOP
ron at flownet.com
Mon Apr 22 10:32:42 PDT 2013
Apologies for the non-CCL-related question, but c.l.l. is slow today and I'm really stuck on this.
I need to dynamically add a slot to a class using the MOP. There doesn't seem to be a standard add-slot method, so I figure I need to use something like ensure-class. To do that, I need to reconstruct the argument to :direct-slots from the existing class definition so I can add a slot without disturbing the existing slots. Before I went down this rabbit hole I thought I'd ask: is there a better/easier way to do this? Surely I'm not the first person to want to do this.
More information about the Openmcl-devel