|
When a class is filed-out first the instance methods and then the class
methods are written.
Because of this order you can not file-in a class like this:
- - - - - - - - - - - - - - - - - - - - - - - -
"Filed out from Dolphin Smalltalk XP"!
Object subclass: #Aaa
instanceVariableNames: 'a'
classVariableNames: ''
poolDictionaries: ''
classInstanceVariableNames: ''!
Aaa guid: (GUID fromString: '{02110211-02F0-4592-BCBC-27DC11CB40EA}')!
Aaa comment: ''!
!Aaa categoriesForClass!Kernel-Objects! !
!Aaa methodsFor!
initialize
a := ##(self preCompute: 1234).
! !
!Aaa categoriesFor: #initialize!public! !
!Aaa class methodsFor!
preCompute: argument
^argument! !
!Aaa class categoriesFor: #preCompute:!public! !
- - - - - - - - - - - - - - - - - - - - - - - -
because the #preCompute: is still undefined when #initialize is compiled.
Is there a reason to file-out instance methods before class methods?
Would it be an idea to change the order to class methods before instance
methods?
Thanks, Pieter
|