This is a follow up to this previously asked question about the documentation function, which apparently deserved its own post.
Is there a way to dynamically get the docstring of either a function/macro OR a method in SBCL?
So far (documentation function-name 'function) gets me the docstring for regular functions (and I assume macros as well), but not methods. I tried 'method, 'standard-method and even 't but they don't seem to work.
My problem is that the environment I work with (in a visual programming interface based on Lisp) is filled with little engines that can be either functions or methods and I don't know how to differentiate them. I just need users to be able to get the docstring quickly for any given symbol (or tool) in the library, no matter its type, if it exists of course.
Thanks !
Julien
DESCRIBE
would be more appropriate if you just want to view the documentation.DOCUMENTATION
is only needed if you want to process the string somehow. – jkiiski