Q: how can I pass an argument to an object constructor that won't be interpreted as a slot?
I am creating an instance of a class. The value of one of its slots depends on another slot and auxiliary information not contained in the class itself.
(get-slot2 var1)                        ; => "a value"
(get-slot2 var2)                        ; => "b value"
That's all well and good, but: to do this, I have to create and access a global variable testvar. How can I do this without using a global variable? How can I pass another argument to the testclass constructor (or initialize-instance) that contains the relevant alist without it being interpreted as a slot value?
Browse other questions tagged arguments eieio or ask your own question.