next up previous
Next: The Hook Construct Up: Hooks and Open Points Previous: HyperTalk

Elaboration of Hooks in a Lisp Environment

  In this section we will discuss and elaborate a hook mechanism for Lisp, which fulfills the requirements of being an open point mechanism.

Hooks are treated in an ad hoc manner in many existing Lisp systems. This section gives a more systematic treatment of hooks, during which both syntactic and semantic issues are settled. In section 6, the platform established in this section will be used to build tools that support the process of learning about and attaching the hooks in Lisp programs.

The details of the hook mechanism must be adapted to the specific Lisp dialect in question. As a case study, we have implemented the whole framework in Emacs Lisp [10], which is a dynamically scoped and fairly traditional dialect of Lisp. As for this paper, we will keep the discussion at a general Lisp level rather than at the level of a particular Lisp dialect. Where appropriate, we mention the issues that depend on concrete dialects.





Kurt Noermark
Wed Mar 6 09:44:24 MET 1996