Re: [Pharo-users] Detecting a class is abstract

2016-04-04 Thread Henrik Nergaard
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

Re: [Pharo-users] Detecting a class is abstract

2016-04-04 Thread Hilaire
Thanks Peter. So I guess, Nautilus does not offer this functionnality. Hilaire -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] Detecting a class is abstract

2016-04-04 Thread Peter Uhnák
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

[Pharo-users] Detecting a class is abstract

2016-04-04 Thread Hilaire
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