<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What makes me suspicious is the output of<div> (describe (make-instance 'funcallable-standard-object))</div><div>vs</div><div> (describe (make-instance 'standard-generic-function))</div><div>.</div><div><br></div><div>There's a layout called layoutFuncallableStandardClass, defined in StandardClass.java, which has NAME as first slot, but that's for class objects with metaclass funcallable-standard-class, not for instances of these classes. I'll think a bit in the next days and try to either resolve my doubts or come up with another fix for the problem. Maybe I'm simply confused; wouldn't be the first time. :)</div><div><br></div><div>Rudi</div><div><br><div><div>On Apr 2, 2013, at 19:52, Erik Huelsmann <<a href="mailto:ehuels@gmail.com">ehuels@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p dir="ltr">Hi Rudi,</p><p dir="ltr">Basically the expectation we violated was the fact that %set-lambda-name didn't want to take a funcallable instance as its function argument. The commit changed that and used the first slot of the funcallable instance class layout (called NAME) to store the name. I guess we forget to finalize the class somewhere, so the spots don't appear?</p><p dir="ltr">Bye,</p><p dir="ltr">Erik.<br>
<br>
sent from my phone</p>
<div class="gmail_quote">On Apr 2, 2013 7:32 PM, "Rudolf Schlatte" <<a href="mailto:rudi@constantly.at">rudi@constantly.at</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I suspect that the changes in commit r14452 only work by accident.<br>
<br>
The definions of SLOT_INDEX_NAME in FuncallableStandardClass vs FuncallableStandardObject are no problem, since the latter simply isn't used anywhere. But the new methods getName() and setName() assume that a) the FuncallableStandardObject instance has at least one slot, and b) that slot holds a name. Since<br>
(class-slots (find-class 'funcallable-standard-object))<br>
returns NIL, these assumptions hold only when the objects are in fact generic functions.<br>
<br>
Amusingly,<br>
(function-lambda-expression (make-instance 'funcallable-standard-object))<br>
runs into the type error on line 2666 of Primitives.lisp ("The value #<FUNCALLABLE-STANDARD-OBJECT {665C5A83}> is not of type FUNCTION.") even though<br>
(typep (make-instance 'funcallable-standard-object) 'function) => T<br>
so I can't trigger the array-out-of-bounds error right now.<br>
<br>
Could I have a recipe for triggering the bug? I'd like to see how cl-cont uses funcallable-standard-objects, and what expectations we violate. I believe I can fix this properly.<br>
<br>
Cheers,<br>
<br>
Rudi<br>
<br>
</blockquote></div>
</blockquote></div><br></div></body></html>