Additional useful methods defined on the base subclass are:
It is sometimes useful to put a summary of the object into the default #<notation> string when using eieio browsing tools.
Implement this function and specify strings in a call to cl-call-next-method to provide additional summary information. When passing in extra strings from child classes, always remember to prepend a space.(defclass data-object () (value) "Object containing one data slot.") (cl-defmethod object-print ((this data-object) &optional strings) "Return a string with a summary of the data object as part of the name." (apply #'cl-call-next-method this (format " value: %s" (render this)) strings))
Here is what some output could look like:(object-print test-object) => #<data-object test-object value: 3>