Is it possible to use a with-slots
-type macro with an instance of a defstruct-defined class in emacs lisp? I tried and I'm getting this error:
eieio-oset: Wrong type argument: eieio-object, "some-string", obj.
Sample code:
(progn
(defstruct testobj a b)
(require 'eieio)
(with-slots (a b) (make-testobj :a 1 :b 2)
(message "value: %s:" (list a b))))