Gerd Moellmann wrote:
>
> james anderson <[EMAIL PROTECTED]> writes:
>
> > 1. In: DEFGENERIC CONSTRUCT-ELEMENT-NODE
> > (MAKE-INSTANCE (NODE-CLASS TYPE) :NAME NAME :DEF ...)
> > Warning: :NAME is not a known argument keyword.
> > Warning: :DEF is not a known argument keyword.
> > Warning: :DOCUMENT is not a known argument keyword.
> >
> > how is it inferring the "known argument keyword" domain? in general, it
> > appears as if a message of this sort arises for all computed classes.
>
> Can you please post an example of this? I don't remember having seen
> something like that before.
there's not much more to that particular method function than the line which the
message quoted
(:method ((context t) (type def-elem-type) (name t))
"the base implementation for a known type in the context of a document or a parent
element
instantiates a node of the declared class."
(make-instance (node-class type) :name name :def type :document *document*))
the node-class function is not a standard slot accessor, but instead a generic
function (untyped)
the entire generic function is a bit large to post. it's (as cited)
construct-element-node which is in
//testdrive/~janson/cl-xml-cmucl/code/xparser/xml-constructors.lisp
...