Shane Celis <[email protected]> writes: > 6. Tag commands as special procedures perhaps by adding something to > their procedure properties. Implement a "command?" procedure. Export > commands and procedures to the same module. Then just pluck the > commands out of all the procedures by using command?.
This is closest to what Emacs does, and probably the best solution, IMO. See <https://www.gnu.org/software/emacs/manual/html_node/elisp/Interactive-Call.html> which describes the 'commandp' predicate, whose definition is in eval.c. Regards, Mark
