Color orange ].
mrph.
]
Best regards,
Henrik
-Original Message-
From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of
Hilaire
Sent: Monday, April 4, 2016 11:49 AM
To: pharo-users@lists.pharo.org
Subject: [Pharo-users] Detecting a class is
Thanks Peter.
So I guess, Nautilus does not offer this functionnality.
Hilaire
--
Dr. Geo
http://drgeo.eu
1. To tell whether a class is abstract:
isAbstract := [ :aClass |
(aClass whichSelectorsReferTo: #subclassResponsibility) isNotEmpty or: [
(aClass respondsTo: #isAbstract) and: [ aClass isAbstract ] ]
]
Just be aware that some classes are "abstract", but you can actually
instantiate them, because
Hi,
Can Nautilius indicate when a class is abstract (i.e. at least one
method in the class, then its hierarchy is definted respond
subclassResponsability?)
I did not find it in the Analyze menu.
Thanks
Hilaire
--
Dr. Geo
http://drgeo.eu