[Cuis-dev] Primitive fail when:send:to:withArguments:

Hilaire Fernandes hilaire at drgeo.eu
Sun May 15 10:31:47 PDT 2022


Hi,

I have an *Error: perform:withArguments:inSuperclass: failed*

1. Listening to the #checkSelection event from the check object:

    check when: #checkSelection send: #changedCheck:for: to: self
    withArguments: {check. aPref} .

2. Then when the check object trigger the event:

    self triggerEvent: #checkSelection with: self

This error shows up. Of course the #changedCheck:for: method is implemented.

It is a primitive fail, the message primitiveFailed is reached:

    perform: selector withArguments: argArray inSuperclass: lookupClass
         "NOTE:  This is just like perform:withArguments:, except that
         the message lookup process begins, not with the receivers's class,
         but with the supplied superclass instead.  It will fail if
    lookupClass
         cannot be found among the receiver's superclasses.
         Primitive. Essential. See Object documentation whatIsAPrimitive."

         <primitive: 100>
         (selector isMemberOf: Symbol)
             ifFalse: [^ self error: 'selector argument must be a Symbol'].
         (selector numArgs = argArray size)
             ifFalse: [^ self error: 'incorrect number of arguments'].
         (self class == lookupClass or: [self class inheritsFrom:
    lookupClass])
             ifFalse: [^ self error: 'lookupClass is not in my
    inheritance chain'].
         self primitiveFailed

Hilaire

-- 
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220515/d8b0c1fa/attachment.htm>


More information about the Cuis-dev mailing list