isAbstract ?

Lukas Renggli renggli at iam.unibe.ch
Tue Jul 11 20:53:53 MEST 2006


> How would you calculate dynamically #isAbstract for a PRCommand for  
> example ? If I remember correctly, for the project I've done using  
> Magritte/Pier/MySQL, I implemented #doExecute for an abstract command.

Something along the lines ...

Behavior>>isAbstract
	^ self allSelectors anySatisfy: [ :each |
		(self lookupSelector: each)
			hasLiteral: #subclassResponsibility ] ]

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch




More information about the SmallWiki mailing list