refactor: rename methods in RB and added hasClassVariableNamed: in Class#19443
refactor: rename methods in RB and added hasClassVariableNamed: in Class#19443jainoshika wants to merge 2 commits intopharo-project:Pharo14from
Conversation
|
while renaming, i found there is an existing hasClassVarNamed: in Class (Kernel) which tell if class’s own classPool contain this variable name?. This may lead to confusion between it and hasClassVariableNamed:. It can also be renamed to like hasOwnClassVariableNamed: (suggested by LLM). |
|
Hi thanks.
|
Tx for this finding. Indeed we should revise it. The suggested name is not good. we should think about the API. May be the variable should tell us its definer and the query should be ignorant of the place where the class variable is defined. |
|
Hi, thanks for the detailed review @Ducasse. for now, i will revert |
|
I will try to see if I get some brain cells to allocate to this. |
Changes
What is left
Fixes: #14939