Refers to class name instead of self class

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Refers to class name instead of self class

Stéphane Ducasse
Checks for classes that have their class name directly in the source  
instead of "self class". The self class variant allows you to create  
subclasses without needing to redefine that method.

Project>>#compileAllIsolated:from:
Project>>#initializeProjectPreferences
Project>>#subProjects
Project>>#storeToMakeRoom
Project>>#armsLengthCommand:withDescription:
Project>>#findProjectView:
Project>>#flapsSuppressed:
Project>>#fromMyServerLoad:
Project>>#showWorldMainDockingBar:
Project>>#assureFlapIntegrity
Project>>#showSharedFlaps
Project>>#decideAboutCreatingBlank:
Project>>#children
Project>>#versionFrom:
Project>>#cleanseDisabledGlobalFlapIDsList
Project>>#ensureChangeSetNameUnique
Project>>#storeSomeSegment
Project>>#hasBadNameForStoring
Project>>#exportSegmentWithChangeSet:fileName:directory:
Project>>#storeDataOn:
Project>>#finalEnterActions
Project>>#enter:revert:saveForRevert:
Project>>#showWorldTaskbar:
Project>>#okToChange
Project>>#depth
Parser>>#pragmaPrimitives
SMDependencyAnalysis>>#installPackageReleases:
MenuMorph>>#deleteIfPopUp
MenuMorph>>#popUpAt:forHand:in:allowKeyboard:
MenuMorph>>#addSubmenu:enabled:
Integer>>#digitLogic:op:length:
Integer>>#digitLshift:
Integer>>#digitRshift:bytes:lookfirst:
Integer>>#digitSubtract:
Integer>>#digitDiv:neg:
Integer>>#digitAdd:
Integer>>#digitMultiply:neg:
Arc>>#displayOn:transformation:clippingBox:rule:fillColor:
PopUpMenu>>#startUpSegmented:withCaption:at:allowKeyboard:
UUniverseMultiServer>>#initialize
MorphThumbnail
 >>#representativeNoTallerThan:norWiderThan:thumbnailHeight:
SystemDictionary>>#discardOddsAndEnds
SystemDictionary>>#majorShrink
MenuItemMorph>>#deselectItem
Form>>#shapeFill:seedBlock:
Form>>#borderFormOfWidth:sharpCorners:
Form>>#pageImage:at:corner:
Form>>#orderedDither32To16
Form>>#wipeImage:at:clippingBox:rectForIndex:
Form>>#fadeImage:at:indexAndMaskDo:
Form>>#yTallyPixelValue:orNot:
Form>>#asFormOfDepth:
Form>>#shapeBorder:width:
Form>>#mapColors:to:
Form>>#allocateForm:
Form>>#replaceColor:withColor:
Form>>#asGrayScale
Form>>#smear:distance:
Form>>#scaledIntoFormOfSize:
Form>>#makeBWForm:
Form>>#eraseShape:
Form>>#readFromOldFormat:
Form>>#copyBits:from:at:colorMap:
Form>>#displayResourceFormOn:
Form>>#copy:
Form>>#displayScaledOn:
Form>>#readResourceFrom:
Form>>#rectangleEnclosingPixelsNotOfColor:
Form>>#findShapeAroundSeedBlock:
Form>>#xTallyPixelValue:orNot:
Form>>#slideImage:at:delta:
Form>>#pageWarp:at:forward:
Form>>#anyShapeFill
Form>>#convexShapeFill:
Form>>#contentsOfArea:into:
Form>>#floodFill:at:tolerance:
Form>>#mapColor:to:
Form>>#shapeFill:interiorPoint:
Form>>#colorReduced
Form>>#fromDisplay:
Form>>#rotateBy:magnify:smoothing:
Form>>#displayOnPort:at:
Form>>#privateFloodFillValue:
SketchMorph>>#wantsSimpleSketchMorphHandles
SmallInteger>>#quo:
SmallInteger>>#digitAt:
SmallInteger>>#/
KeyedTree>>#subtrees
KeyedTree>>#merge:
KeyedTree>>#copy
ReadWriteStream>>#hash
ReadWriteStream>>#=
MessageSet>>#initializeMessageList:
MessageSet>>#setClassAndSelectorIn:
MorphicTransform>>#inverseTransformation
ChangeList>>#selectConflictsWith
OBMonticelloPackageNode>>#findClass
SMLoader>>#reOpen
InstructionStream>>#skipBackBeforeJump
Object>>#deepCopy
PianoRollNoteMorph>>#mouseDown:
Set>>#collect:
Set>>#=
AlignmentMorph>>#canHaveFillStyles
OBClassNode>>#classHierarchy
OBClassNode>>#packagesForClassClass
Rectangle>>#roundTo:
Rectangle>>#insetOriginBy:cornerBy:
Rectangle>>#insetBy:
Rectangle>>#expandBy:
Rectangle>>#truncated
Rectangle>>#intersect:
Rectangle>>#compressed
Rectangle>>#expandTo:
Rectangle>>#truncateTo:
Rectangle>>#rounded
Rectangle>>#encompass:
Rectangle>>#expanded
Rectangle>>#scaleBy:
Rectangle>>#merge:
Rectangle>>#compressTo:
Rectangle>>#quickMerge:
Rectangle>>#isSelfEvaluating
Rectangle>>#translateBy:
Rectangle>>#extendBy:
Rectangle>>#outsetBy:
SequenceableCollection>>#hasEqualElements:
FileDirectoryWrapper>>#contents
SqueakPage>>#urlNoOverwrite:
TextComposer>>#composeEachRectangleIn:
TextComposer>>#slideOneLineDown
WaveEditor>>#showFFTAtCursor
WaveEditor>>#showEnvelope
ColorMap>>#inverseMap
ColorMap>>#mappingTo:
Socket>>#receiveDataWithTimeoutInto:startingAt:
Socket>>#connectTo:port:
Socket>>#localPort
Socket>>#waitForConnectionFor:ifTimedOut:
Socket>>#accept
Socket>>#waitForSendDoneFor:
Socket>>#localAddress
Socket>>#waitFor...

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Refers to class name instead of self class

Gary Chambers-4
Project>>#finalEnterActions (changed to use self class)
KeyedTree>>* (valid check for anything that can be a (sub)tree. Allows
heterogeneous use of subclasses with appropriate behaviour (self class would
be restrictive)).

Regards, Gary


----- Original Message -----
From: "Stéphane Ducasse" <[hidden email]>
To: "Pharo Development" <[hidden email]>
Sent: Saturday, February 14, 2009 3:44 PM
Subject: [Pharo-project] Refers to class name instead of self class


> Checks for classes that have their class name directly in the source
> instead of "self class". The self class variant allows you to create
> subclasses without needing to redefine that method.
>
> Project>>#compileAllIsolated:from:
> Project>>#initializeProjectPreferences
> Project>>#subProjects
> Project>>#storeToMakeRoom
> Project>>#armsLengthCommand:withDescription:
> Project>>#findProjectView:
> Project>>#flapsSuppressed:
> Project>>#fromMyServerLoad:
> Project>>#showWorldMainDockingBar:
> Project>>#assureFlapIntegrity
> Project>>#showSharedFlaps
> Project>>#decideAboutCreatingBlank:
> Project>>#children
> Project>>#versionFrom:
> Project>>#cleanseDisabledGlobalFlapIDsList
> Project>>#ensureChangeSetNameUnique
> Project>>#storeSomeSegment
> Project>>#hasBadNameForStoring
> Project>>#exportSegmentWithChangeSet:fileName:directory:
> Project>>#storeDataOn:
> Project>>#finalEnterActions
> Project>>#enter:revert:saveForRevert:
> Project>>#showWorldTaskbar:
> Project>>#okToChange
> Project>>#depth
> Parser>>#pragmaPrimitives
> SMDependencyAnalysis>>#installPackageReleases:
> MenuMorph>>#deleteIfPopUp
> MenuMorph>>#popUpAt:forHand:in:allowKeyboard:
> MenuMorph>>#addSubmenu:enabled:
> Integer>>#digitLogic:op:length:
> Integer>>#digitLshift:
> Integer>>#digitRshift:bytes:lookfirst:
> Integer>>#digitSubtract:
> Integer>>#digitDiv:neg:
> Integer>>#digitAdd:
> Integer>>#digitMultiply:neg:
> Arc>>#displayOn:transformation:clippingBox:rule:fillColor:
> PopUpMenu>>#startUpSegmented:withCaption:at:allowKeyboard:
> UUniverseMultiServer>>#initialize
> MorphThumbnail
> >>#representativeNoTallerThan:norWiderThan:thumbnailHeight:
> SystemDictionary>>#discardOddsAndEnds
> SystemDictionary>>#majorShrink
> MenuItemMorph>>#deselectItem
> Form>>#shapeFill:seedBlock:
> Form>>#borderFormOfWidth:sharpCorners:
> Form>>#pageImage:at:corner:
> Form>>#orderedDither32To16
> Form>>#wipeImage:at:clippingBox:rectForIndex:
> Form>>#fadeImage:at:indexAndMaskDo:
> Form>>#yTallyPixelValue:orNot:
> Form>>#asFormOfDepth:
> Form>>#shapeBorder:width:
> Form>>#mapColors:to:
> Form>>#allocateForm:
> Form>>#replaceColor:withColor:
> Form>>#asGrayScale
> Form>>#smear:distance:
> Form>>#scaledIntoFormOfSize:
> Form>>#makeBWForm:
> Form>>#eraseShape:
> Form>>#readFromOldFormat:
> Form>>#copyBits:from:at:colorMap:
> Form>>#displayResourceFormOn:
> Form>>#copy:
> Form>>#displayScaledOn:
> Form>>#readResourceFrom:
> Form>>#rectangleEnclosingPixelsNotOfColor:
> Form>>#findShapeAroundSeedBlock:
> Form>>#xTallyPixelValue:orNot:
> Form>>#slideImage:at:delta:
> Form>>#pageWarp:at:forward:
> Form>>#anyShapeFill
> Form>>#convexShapeFill:
> Form>>#contentsOfArea:into:
> Form>>#floodFill:at:tolerance:
> Form>>#mapColor:to:
> Form>>#shapeFill:interiorPoint:
> Form>>#colorReduced
> Form>>#fromDisplay:
> Form>>#rotateBy:magnify:smoothing:
> Form>>#displayOnPort:at:
> Form>>#privateFloodFillValue:
> SketchMorph>>#wantsSimpleSketchMorphHandles
> SmallInteger>>#quo:
> SmallInteger>>#digitAt:
> SmallInteger>>#/
> KeyedTree>>#subtrees
> KeyedTree>>#merge:
> KeyedTree>>#copy
> ReadWriteStream>>#hash
> ReadWriteStream>>#=
> MessageSet>>#initializeMessageList:
> MessageSet>>#setClassAndSelectorIn:
> MorphicTransform>>#inverseTransformation
> ChangeList>>#selectConflictsWith
> OBMonticelloPackageNode>>#findClass
> SMLoader>>#reOpen
> InstructionStream>>#skipBackBeforeJump
> Object>>#deepCopy
> PianoRollNoteMorph>>#mouseDown:
> Set>>#collect:
> Set>>#=
> AlignmentMorph>>#canHaveFillStyles
> OBClassNode>>#classHierarchy
> OBClassNode>>#packagesForClassClass
> Rectangle>>#roundTo:
> Rectangle>>#insetOriginBy:cornerBy:
> Rectangle>>#insetBy:
> Rectangle>>#expandBy:
> Rectangle>>#truncated
> Rectangle>>#intersect:
> Rectangle>>#compressed
> Rectangle>>#expandTo:
> Rectangle>>#truncateTo:
> Rectangle>>#rounded
> Rectangle>>#encompass:
> Rectangle>>#expanded
> Rectangle>>#scaleBy:
> Rectangle>>#merge:
> Rectangle>>#compressTo:
> Rectangle>>#quickMerge:
> Rectangle>>#isSelfEvaluating
> Rectangle>>#translateBy:
> Rectangle>>#extendBy:
> Rectangle>>#outsetBy:
> SequenceableCollection>>#hasEqualElements:
> FileDirectoryWrapper>>#contents
> SqueakPage>>#urlNoOverwrite:
> TextComposer>>#composeEachRectangleIn:
> TextComposer>>#slideOneLineDown
> WaveEditor>>#showFFTAtCursor
> WaveEditor>>#showEnvelope
> ColorMap>>#inverseMap
> ColorMap>>#mappingTo:
> Socket>>#receiveDataWithTimeoutInto:startingAt:
> Socket>>#connectTo:port:
> Socket>>#localPort
> Socket>>#waitForConnectionFor:ifTimedOut:
> Socket>>#accept
> Socket>>#waitForSendDoneFor:
> Socket>>#localAddress
> Socket>>#waitFor...
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project 


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Refers to class name instead of self class

Damien Cassou
In reply to this post by Stéphane Ducasse
On Sat, Feb 14, 2009 at 4:44 PM, Stéphane Ducasse
<[hidden email]> wrote:
> Checks for classes that have their class name directly in the source
> instead of "self class". The self class variant allows you to create
> subclasses without needing to redefine that method.

Issue #575

--
Damien Cassou
http://damiencassou.seasidehosting.st

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project