Where to publish minor clean-up ?
nicolas cellier
ncellier at ifrance.com
Mon Apr 3 20:56:36 UTC 2006
A lot of methods seem duplicated like for example:
DecompilerConstructor>>codeTemp: index named: tempName
^ TempVariableNode new
name: tempName
index: index
type: LdTempType
scope: 0
DecompilerConstructor>>codeTemp: index
^ TempVariableNode new
name: 't' , (index + 1) printString
index: index
type: LdTempType
scope: 0
The second one should better be
^ self codeTemp: index named: 't' , (index + 1) printString
This is a very minor clean-up, i agree, but plenty of these can make code
smaller smarter easier to maintain...
So my question is where to publish such small pieces of code ?
Nicolas
-------------- next part --------------
'From Squeak3.9alpha of 4 July 2005 [latest update: #7020] on 3 April 2006 at 10:49:59 pm'!
!DecompilerConstructor methodsFor: 'constructor' stamp: 'nice 4/3/2006 21:07'!
codeTemp: index
^ self codeTemp: index named: 't' , (index + 1) printString! !
More information about the Squeak-dev
mailing list
|