CafeKrem / PTL

Pharo transformation Language is a transformation model language like ALT tefkat.
MIT License
1 stars 1 forks source link

[Pattern-matching] give a way to match only every object A not his sublclasses #29

Closed CafeKrem closed 3 years ago

CafeKrem commented 3 years ago

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 ?