* Raymond Toy <[email protected]> :
Wrote on Wed, 10 Dec 2008 11:21:08 -0500:

|>>>>> "dvl" == Didier Verna <[email protected]> writes:

|     dvl> But doing so by making (setf (slot-value))'s behavior
|     dvl> different (shall I say inconsistent?) depending on the
|     dvl> 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
|     dvl> play with the optimize declaration.

The other concern was compatibility with other lisps which do not signal
an error when the type declaration is wrong.  This particular typecheck
is not mandated by any spec, and lisps tend to let it pass.

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

Thanks, I have no problems setting pcl::*use-slot-types-p* when
compiling code with incorrect typespecs but thinking out aloud [on
behalf of the devil] perhaps the default behaviour should be a warning

--
Madhu
Crosspost & Followup-To: nntp+news.gmane.org:gmane.lisp.cmucl.devel
may be incorrectly set by my newsreader







Reply via email to