Ok, so it’s like this:
receiver selectors
returns
#(#expression #expression: #mondrianLabel #accept: #name)
But
receiver expression
throws MessageNotUnderstood.
Any ides how to fix this and why this can be caused?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are probably sending the message
expressionto a class instead of an instance of that class.If the result of evaluating
receiver selectorsis#(#expression #expression: #mondrianLabel #accept: #name)thenreceiveris most probably a class. The message#selectorsis implemented on the classBehaviorand returns the selectors of the instance methods of the class. In other words: instances of the class (or any of its subclasses) understand the messages listed.Hence, if you evaluate
receiver expression, then you will get a message not understood exception because the message#expressionis defined on the instance of the class that is the value of yourreceivervariable.