Re: When slots :type are used

Raymond Toy <[email protected]>
Newsgroups gmane.lisp.cmucl.general
Message-ID <[email protected]>
>>>>> "Raymond" == Raymond Toy <[email protected]> writes:

>>>>> "dvl" == Didier Verna <[email protected]> writes:
    dvl> But doing so by making (setf (slot-value))'s behavior different (shall
    dvl> I say inconsistent?) depending on the context feels somewhat weird to

    Raymond> Yes, I think it's inconsistent.  

    dvl> me. I guess you concern is performance here; but then, we can play with
    dvl> the optimize declaration.

    Raymond> Unfortunately, that doesn't help.   The function that I changed is
    Raymond> called from the (setf slot-value) method, so any optimize declarations
    Raymond> won't change that.

Perhaps not the best solution, but I have made an internal change so
that pcl::*use-slot-type-p* will be honored (at runtime).  Hence, type
checking will be done accordingly.

Ray
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.