advise-1

$Revision: 5.0.2.5 $

Function

Package: EXCL

Arguments: (fspec class name position forms)

This function actually does the work of advising. With the exception of the forms argument, its arguments have the same meaning as in excl:advise, except here they are evaluated (of course). The forms argument is not an &rest argument, so instead it is a list of forms to be evaluated. See the definition of excl:advise for further explanation of the arguments.

The following examples demonstrate the differences between a call to excl:advise and a call to excl:advise-1. The two forms have exactly the same effect.

(excl:advise foo :before jim 100
     (format t "hello~%") (format t "hello again~%"))
(excl:advise-1 'foo :before 'jim 100
     '((format t "hello~%") (format t "hello again~%")))

Even a single form must be in a list in calls to excl:advise-1.

See advice.htm for general information on the advice facility in Allegro CL.

The general documentation description is in introduction.htm. The index in index.htm.

Copyright (C) 1998-1999, Franz Inc., Berkeley, CA. All Rights Reserved.