NextPrevUpTopContentsIndex

11.2.1 Command Names and Command Line Names

Every command has a command name , which is a symbol. The symbol names the function that implements the command. The body of the command is the function definition of that symbol.

By convention, commands are named with a com - prefix, although CLIM does not enforce this convention.

To avoid collisions among command names, each application should live in its own package; for example, there might be several commands named com-show-chart defined for each of a spreadsheet, a navigation program, and a medical application.

CLIM supports a command line name which is the "command" that the end user sees and uses, as opposed to the construct that is the command's actual name. For example, the command com-show-chart would have a command-line name of Show Chart . When defining a command using define-command (or the application's command defining macro), you can have a command line name generated automatically. As you can see from this example, the automatically generated command line name consists of the command's name with the hyphens replaced by spaces and the words capitalized. Any com - prefix is removed.


Common Lisp Interface Manager 2.0 User's Guide - 27 Feb 2008

NextPrevUpTopContentsIndex