Commits

Ryan Macnak committed ffeb37c

Proper implementation for includesSelector:

Comments (0)

Files changed (1)

 allSubclassesDoGently: block = (
 	self allSubclassesDo: block
 )
-includesSelector: sel = (
-	#BOGUS.
-	^false
+includesSelector: sel <Symbol> ^<Boolean> = (
+	"Answer whether the message whose selector is the argument is in the 
+	method dictionary of the receiver's class."
+
+	^ self methodDict includesKey: sel 
 )
 methodDictionary = (
 	^methodDict
 	format: fmt.
 )'instance creation'
 basicNew = (
+	"<primitive: 70>"
 	^vmmirror instaniateFixedClass: self ifFail: [self halt]
 )
 basicNew: sizeRequested = (
+	"<primitive: 71>"
 	^vmmirror instaniateVariableClass: self withSize: sizeRequested ifFail: [self halt]
 )
 new = (