Display functions in address book demo: why generic?

Paolo Amoroso <[email protected]> Sat, 20 Mar 2004 16:18:26 +0100
Newsgroups gmane.lisp.clim
Organization Paolo Amoroso - Milano, ITALY
Message-ID <[email protected]>
Consider the display functions of the well known address book CLIM
demo. The code looks like this, for example for the
DISPLAY-CURRENT-ADDRESS function:

(define-application-frame address-book ()
  ;; ...
  (:panes
    (interactor :interactor)
    (address :application
             :incremental-redisplay t
             :display-function 'display-current-address)
  ;; ...
  ))

(defmethod display-current-address ((frame address-book) stream)
  (let ((current-address (slot-value frame 'current-address)))
    (when current-address
       (updating-output (stream :unique-id current-address)
         (display-address current-address stream)))))

The CLIM 2 specification does not explicitly mention whether a display
function has to be ordinary or generic. Why does the address book demo
use generic display functions?


Paolo
-- 
Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film
--
[To unsubscribe to this list send an email to "[email protected]"
with the following text in the BODY of the message "unsubscribe clim"]