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

Juan Vuletich JuanVuletich at zoho.com
Sun May 15 16:37:52 PDT 2022


Fix at GitHub.

Thanks,

On 5/15/2022 2:31 PM, Hilaire Fernandes via Cuis-dev wrote:
>
> 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
>
>
> -- Cuis-dev mailing list Cuis-dev at lists.cuis.st 
> https://lists.cuis.st/mailman/listinfo/cuis-dev


-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
https://independent.academia.edu/JuanVuletich
https://www.researchgate.net/profile/Juan-Vuletich
https://patents.justia.com/inventor/juan-manuel-vuletich
https://twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220515/10490184/attachment-0001.htm>


More information about the Cuis-dev mailing list