Re: bug in clsql MOP usage?

Kevin Rosenberg <kevin-HJRc7zDS/[email protected]>
Newsgroups gmane.lisp.clsql.devel
Message-ID <[email protected]>
Hoehle, Joerg-Cyril wrote:
> CLISP's MOP support should be complete now. Nevertheless, it errors
> out in clsql's sql/ooddl.lisp claiming that there's no slot named
> TYPE.

The attribute TYPE is inherited from standard-direct-slot-definition.
In testing with CLISP, I've found that CLISP names this attribute
differently than AllegoCL, CMUCL, Lispworks, OpenMCL, and SBCL. CLISP
names this slot $TYPE. I've worked around this in my CLSQL development
tree, but this compatibility update is not in the last public release
of CLSQL (3.0.6).

FYI, the TYPE slot is used to extract the CLSQL type information of
the view class slot. In CLSQL's compute-effective-slot-definition, a
more generic Lisp type is stored back in the TYPE attribute after the
CLSQL-specific TYPE information is extracted from the direct slot
definition.

> To me naive user, it looks like there once was a slot of that name?!?
> which seems to have been removed in some version of clsql.

Nope, just inherited from a superclass as explained above.

-- 
Kevin Rosenberg
kevin-HJRc7zDS/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.