[Pattern-matching] give a way to match only every object A not his sublclasses
Closed this issue · 1 comments
CafeKrem commented
[Pattern-matching] give a way to match only every object A not his sublclasses
CafeKrem commented
actually if we are doing this
A superClassOf: B
pattern := A asMatcher.
(pattern match: A new )isMatch "true"
(pattern match: B new ) isMatch"false"
so we need to find a way to match only a class A and only it's class.
maybe an option ?