I think Alan Moore wrote:
> >
> > The "slot-specific" declaration for templates
> So how does this work for defclass? Can we supply a declare section in the
> defclass and it will be propagated to the generated deftemplate or do we
> need to create another deftemplate that extends the defclass?
>
There's a new syntax for deftemplate that makes it a substitute for
defclass (also from the manual) :
The "from-class" declaration for templates. This
provides a different syntax for definining defclasses, and more
importantly, lets you apply "slot-specific" to defclasses. The
syntax looks like:
(deftemplate my-class
(declare (from-class com.package.MyClass)
(slot-specific TRUE)))
This is equivalent to calling "(defclass my-class
com.package.MyClass)" , plus it adds the slot-specific
property.
---------------------------------------------------------
Ernest Friedman-Hill
Science and Engineering PSEs Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------