I want to be able to print the variable of a structure when I instantiate it, in order to see what is going on. I have profusely googled this idea and cannot find anything concrete.
So for instance:
(setf object-name
(make-the-object :obj-var value
:obj-var1 value))
Could this become something like this:
(setf object-name
(make-the-object :obj-var value
:obj-var1 value
:(print obj-var1)))
so that the variable is printed on instantiation?
1 Answer