Re: When slots :type are used

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

    Nicolas> Raymond Toy <[email protected]> writes:
    >>> (defmethod setslot ((foo foo) val)
    >>> (setf (slot-value foo 'a) val))
    >>> 
    >>> (setslot *object* 3.5) ;; triggers a type error
    >>> 
    >>> Can somebody provide a rationale for this ??
    >>> 
    >> Most likely because no got around to doing it.   Plus the most
    >> interesting/most common case is probably in a method.

    Nicolas> Wasn't this introduced by Gerd Moellmann's PCL improvements?  I remember

Yes, Gerd made these changes.

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.