[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Law of good style for CLOS

    Date: Fri, 27 May 88 23:03:42 EDT
    From: karl lieberherr <lieber@corwin.ccs.northeastern.edu>
    Subject: Law of good style for CLOS

    ----- LAW OF DEMETER FOR CLOS (object version)----------
    All function calls (whether generic or not) inside a method M must have
    one of the following objects passed by their first argument:
        a value of M's parameters or
        an immediate part (the value of a slot) of the first argument.
    (Objects created by the method and objects in global variables
    are viewed as being transmitted by arguments.)

                             I look forward to see some of your
    violations of the Law for which you can give a convincing argument
    that the violation is justified.

(defmethod violation ((l demeters-law))
  (format t "How about this?"))

-- Dan