X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=attrib-class.lisp;h=7a7bebeef95db6ee2830345aeae3aff548f29789;hp=215089f03a0e3d3e868334005ec794294dfd98a2;hb=30b4f8d91af2bb031e8d4ef7d5a38492739de2bf;hpb=0e5343fda28c559f11e003805727f4c625d178f3 diff --git a/attrib-class.lisp b/attrib-class.lisp index 215089f..7a7bebe 100644 --- a/attrib-class.lisp +++ b/attrib-class.lisp @@ -7,12 +7,13 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: attrib-class.lisp,v 1.2 2002/10/06 13:30:17 kevin Exp $ +;;;; $Id: attrib-class.lisp,v 1.4 2002/10/10 16:23:48 kevin Exp $ ;;;; -;;;; This file, part of Kmrcl, is Copyright (c) 2002 by Kevin M. Rosenberg +;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; -;;;; Kmrcl users are granted the rights to distribute and use this software -;;;; as governed by the terms of the GNU General Public License. +;;;; KMRCL users are granted the rights to distribute and use this software +;;;; as governed by the terms of the Lisp Lesser GNU Public License +;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* ;;;; Defines a metaclass that allows the use of attributes (or subslots) @@ -45,7 +46,7 @@ (declare (ignorable slot)) (apply #'make-instance 'attributes-esd - :attributes (remove-duplicates (gu:mapappend #'attributes dsds)) + :attributes (remove-duplicates (mapappend #'attributes dsds)) (excl::compute-effective-slot-definition-initargs cl dsds)) ) @@ -106,19 +107,19 @@ (:metaclass kmrcl:attributes-class)) (defparameter cr (make-instance 'credit-rating)) -(format t "~&date-set: ~a" (gu:slot-attribute cr 'level 'date-set)) -(setf (gu:slot-attribute cr 'level 'date-set) "12/15/1990") -(format t "~&date-set: ~a" (gu:slot-attribute cr 'level 'date-set)) +(format t "~&date-set: ~a" (slot-attribute cr 'level 'date-set)) +(setf (slot-attribute cr 'level 'date-set) "12/15/1990") +(format t "~&date-set: ~a" (slot-attribute cr 'level 'date-set)) (defclass monitored-credit-rating (credit-rating) ((level :attributes (last-checked interval date-set)) (cc :initarg :cc) (id :attributes (verified)) ) - (:metaclass gu:attributes-class)) + (:metaclass attributes-class)) (defparameter mcr (make-instance 'monitored-credit-rating)) -(setf (gu:slot-attribute mcr 'level 'date-set) "01/05/2002") -(format t "~&date-set for mcr: ~a" (gu:slot-attribute mcr 'level 'date-set)) +(setf (slot-attribute mcr 'level 'date-set) "01/05/2002") +(format t "~&date-set for mcr: ~a" (slot-attribute mcr 'level 'date-set)) ||#