Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.712.mcz
==================== Summary ====================
Name: Kernel-eem.712
Author: eem
Time: 8 October 2012, 11:29:17.81 am
UUID: 865633cc-22d5-48fe-8768-b53c0567b3fd
Ancestors: Kernel-ul.711
Make CompiledMethod>>scanFor: accept a block or a number.
It's too easy to say "m scanFor: [:b|...]" and it return nothing
because the closure is never equal to a byte, and there's no error.
=============== Diff against Kernel-ul.711 ===============
Item was changed:
----- Method: CompiledMethod>>scanFor: (in category 'scanning') -----
+ scanFor: byteOrClosure
+ "Answer whether the receiver contains the argument as a bytecode,
+ if it is a number, or evaluates to true if a block."
+ ^ (InstructionStream on: self) scanFor: (byteOrClosure isBlock
+ ifTrue: [byteOrClosure]
+ ifFalse: [[:instr | instr = byteOrClosure]])
- scanFor: byte
- "Answer whether the receiver contains the argument as a bytecode."
-
- ^ (InstructionStream on: self) scanFor: [:instr | instr = byte]
"
Smalltalk browseAllSelect: [:m | m scanFor: 134]
"!
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.712.mcz
==================== Summary ====================
Name: Kernel-eem.712
Author: eem
Time: 8 October 2012, 11:29:17.81 am
UUID: 865633cc-22d5-48fe-8768-b53c0567b3fd
Ancestors: Kernel-ul.711
Make CompiledMethod>>scanFor: accept a block or a number.
It's too easy to say "m scanFor: [:b|...]" and it return nothing
because the closure is never equal to a byte, and there's no error.
=============== Diff against Kernel-ul.711 ===============
Item was changed:
----- Method: CompiledMethod>>scanFor: (in category 'scanning') -----
+ scanFor: byteOrClosure
+ "Answer whether the receiver contains the argument as a bytecode,
+ if it is a number, or evaluates to true if a block."
+ ^ (InstructionStream on: self) scanFor: (byteOrClosure isBlock
+ ifTrue: [byteOrClosure]
+ ifFalse: [[:instr | instr = byteOrClosure]])
- scanFor: byte
- "Answer whether the receiver contains the argument as a bytecode."
-
- ^ (InstructionStream on: self) scanFor: [:instr | instr = byte]
"
Smalltalk browseAllSelect: [:m | m scanFor: 134]
"!
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.712.mcz
==================== Summary ====================
Name: Kernel-eem.712
Author: eem
Time: 8 October 2012, 11:29:17.81 am
UUID: 865633cc-22d5-48fe-8768-b53c0567b3fd
Ancestors: Kernel-ul.711
Make CompiledMethod>>scanFor: accept a block or a number.
It's too easy to say "m scanFor: [:b|...]" and it return nothing
because the closure is never equal to a byte, and there's no error.
=============== Diff against Kernel-ul.711 ===============
Item was changed:
----- Method: CompiledMethod>>scanFor: (in category 'scanning') -----
+ scanFor: byteOrClosure
+ "Answer whether the receiver contains the argument as a bytecode,
+ if it is a number, or evaluates to true if a block."
+ ^ (InstructionStream on: self) scanFor: (byteOrClosure isBlock
+ ifTrue: [byteOrClosure]
+ ifFalse: [[:instr | instr = byteOrClosure]])
- scanFor: byte
- "Answer whether the receiver contains the argument as a bytecode."
-
- ^ (InstructionStream on: self) scanFor: [:instr | instr = byte]
"
Smalltalk browseAllSelect: [:m | m scanFor: 134]
"!
Bert Freudenberg uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-djm.526.mcz
==================== Summary ====================
Name: Monticello-djm.526
Author: djm
Time: 29 September 2012, 6:32:11.647 pm
UUID: f5af1d80-d6bb-4193-b287-85e06123c798
Ancestors: Monticello-bf.525
Adding missing subclass responsibility method MCWriteOnlyRepository>>versionNamesForPackageNamed: to fix bug in saving to an smtp repository.
=============== Diff against Monticello-bf.525 ===============
Item was added:
+ ----- Method: MCWriteOnlyRepository>>versionNamesForPackageNamed: (in category 'as yet unclassified') -----
+ versionNamesForPackageNamed: aString
+ "Answer a collection of MCVersionNames whose Package is named aString."
+ ^{}!
Bert Freudenberg uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-djm.526.mcz
==================== Summary ====================
Name: Monticello-djm.526
Author: djm
Time: 29 September 2012, 6:32:11.647 pm
UUID: f5af1d80-d6bb-4193-b287-85e06123c798
Ancestors: Monticello-bf.525
Adding missing subclass responsibility method MCWriteOnlyRepository>>versionNamesForPackageNamed: to fix bug in saving to an smtp repository.
=============== Diff against Monticello-bf.525 ===============
Item was added:
+ ----- Method: MCWriteOnlyRepository>>versionNamesForPackageNamed: (in category 'as yet unclassified') -----
+ versionNamesForPackageNamed: aString
+ "Answer a collection of MCVersionNames whose Package is named aString."
+ ^{}!
Bert Freudenberg uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-djm.526.mcz
==================== Summary ====================
Name: Monticello-djm.526
Author: djm
Time: 29 September 2012, 6:32:11.647 pm
UUID: f5af1d80-d6bb-4193-b287-85e06123c798
Ancestors: Monticello-bf.525
Adding missing subclass responsibility method MCWriteOnlyRepository>>versionNamesForPackageNamed: to fix bug in saving to an smtp repository.
=============== Diff against Monticello-bf.525 ===============
Item was added:
+ ----- Method: MCWriteOnlyRepository>>versionNamesForPackageNamed: (in category 'as yet unclassified') -----
+ versionNamesForPackageNamed: aString
+ "Answer a collection of MCVersionNames whose Package is named aString."
+ ^{}!