Chris Cunningham uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-cbc.336.mcz
==================== Summary ====================
Name: KernelTests-cbc.336
Author: cbc
Time: 25 March 2018, 1:51:33.345291 pm
UUID: 6e6b91ac-d706-8f4d-bd60-1057109994cb
Ancestors: KernelTests-eem.335
Test that new xor: takes blocks - but only those that result in booleans. Others raise errors.
=============== Diff against KernelTests-eem.335 ===============
Item was changed:
----- Method: FalseTest>>testXor (in category 'tests') -----
testXor
self assert: (false xor: true) = true.
self assert: (false xor: false) = false.
+ self assert: (false xor: [true]) = true.
+ self assert: (false xor: [false]) = false.
+ self should: [false xor: [1]] raise: NonBooleanReceiver.!
-
- self
- should: [(false xor: [false])
- ifTrue: ["This should never be true, do not signal an Error and let the test fail"]
- ifFalse: [self error: 'OK, this should be false, raise an Error']]
- raise: Error
- description: 'a Block argument is not allowed. If it were, answer would be false'.!
Item was changed:
----- Method: TrueTest>>testXor (in category 'testing') -----
testXor
self assert: (true xor: true) = false.
self assert: (true xor: false) = true.
+ self assert: (true xor: [true]) = false.
+ self assert: (true xor: [false]) = true.
+ self should: [true xor: [1]] raise: NonBooleanReceiver.!
-
- self
- should: [(true xor: [true])
- ifTrue: ["This should never be true, do not signal an Error and let the test fail"]
- ifFalse: [self error: 'OK, this should be false, raise an Error']]
- raise: Error
- description: 'a Block argument is not allowed. If it were, answer would be false'.!
Chris Cunningham uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-cbc.1163.mcz
==================== Summary ====================
Name: Kernel-cbc.1163
Author: cbc
Time: 21 March 2018, 9:09:20.773568 pm
UUID: 45d9dad8-7c81-034e-b578-b9ccd291cab6
Ancestors: Kernel-dtl.1162, Kernel-fn.1152
Update #xor: to work with argument being a block as well.
=============== Diff against Kernel-dtl.1162 ===============
Item was added:
+ ----- Method: Boolean>>xor: (in category 'logical operations') -----
+ xor: aBoolean
+ "Exclusive OR. Answer true if the receiver is not equivalent to aBoolean."
+
+ ^(self == aBoolean) not!
Item was changed:
----- Method: False>>xor: (in category 'logical operations') -----
xor: aBoolean
+ "aBoolean is either a boolean, or an object who's #value returns a boolean (usually a block)."
+ ^aBoolean value ifTrue: [ true ] ifFalse: [ false ]!
- "Posted by Eliot Miranda to squeak-dev on 3/24/2009"
-
- ^aBoolean!
Item was changed:
----- Method: True>>xor: (in category 'logical operations') -----
xor: aBoolean
+ "aBoolean is either a boolean, or an object who's #value returns a boolean (usually a block)."
+ ^aBoolean value ifTrue: [ false ] ifFalse: [ true ]!
- "Posted by Eliot Miranda to squeak-dev on 3/24/2009"
-
- ^aBoolean not!
Chris Cunningham uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-fn.1152.mcz
==================== Summary ====================
Name: Kernel-fn.1152
Author: fn
Time: 10 February 2018, 5:39:43.015522 pm
UUID: 3f388945-f981-4f1e-830e-a296f4d45a2a
Ancestors: Kernel-fn.1151
Move to "logical operations".
=============== Diff against Kernel-fn.1151 ===============
Item was added:
+ ----- Method: Boolean>>xor: (in category 'logical operations') -----
+ xor: aBoolean
+ "Exclusive OR. Answer true if the receiver is not equivalent to aBoolean."
+
+ ^(self == aBoolean) not!
Chris Cunningham uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-fn.1151.mcz
==================== Summary ====================
Name: Kernel-fn.1151
Author: fn
Time: 9 February 2018, 12:32:25.516883 pm
UUID: 9fb7df4b-6bf4-4af8-9c75-7496c2f0b517
Ancestors: Kernel-tonyg.1150
For consistency: allow blocks to be passed into #xor: (see #or: and #and:).
=============== Diff against Kernel-tonyg.1150 ===============
Item was changed:
----- Method: False>>xor: (in category 'logical operations') -----
+ xor: alternativeBlock
- xor: aBoolean
"Posted by Eliot Miranda to squeak-dev on 3/24/2009"
+ ^alternativeBlock value!
- ^aBoolean!
Item was changed:
----- Method: True>>xor: (in category 'logical operations') -----
+ xor: alternativeBlock
- xor: aBoolean
"Posted by Eliot Miranda to squeak-dev on 3/24/2009"
+ ^alternativeBlock value not!
- ^aBoolean not!
tim Rowledge uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-tpr.208.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-tpr.208
Author: tpr
Time: 22 March 2018, 5:11:45.931652 pm
UUID: f88f9d36-8005-46ef-96e8-1dadd3301370
Ancestors: ToolBuilder-Morphic-tpr.207
Correct a couple of FileChooserDialog example comments to actually work
=============== Diff against ToolBuilder-Morphic-tpr.207 ===============
Item was changed:
----- Method: FileChooserDialog class>>openOn:suffixList:label: (in category 'instance creation') -----
openOn: aDirectory suffixList: patternList label: labelString
"Open a modal dialog to choose a file. Start the dialog with aDirectory selected
and files matching the file name suffixes in patternList. Set the user message
to labelString."
+ "FileChooserDialog openOn: FileDirectory default suffixList: { 'changes' . 'image' } label: 'Do something with the selected files' "
- "FileChooserDialog openOn: FileDirectory default suffixList: { '*.changes' . '*image' } label: 'Do something with the selected files' "
^self new
directory: aDirectory;
suffixList: patternList;
message: labelString;
getUserResponse!
Item was changed:
----- Method: FileChooserDialog class>>openOnSuffixList:label: (in category 'instance creation') -----
openOnSuffixList: patternList label: labelString
"Open a modal dialog to choose a file. Start the dialog with a default directory
selected and with files matching the file name suffixes in patternList. Set the
user message to labelString."
+ "FileChooserDialog openOnSuffixList: { 'changes' . 'image' } label: 'Do something with the selected files' "
- "FileChooserDialog openOnSuffixList: { '*.changes' . '*image' } label: 'Do something with the selected files' "
^self openOn: nil suffixList: patternList label: labelString
!
Levente Uzonyi uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-ul.679.mcz
==================== Summary ====================
Name: Monticello-ul.679
Author: ul
Time: 22 March 2018, 7:32:51.372118 pm
UUID: 7f5a3bf7-0cda-4200-b035-d9ce789f19d5
Ancestors: Monticello-ul.678
- enable #useSharedWebClientInstance by default when WebClient is present
=============== Diff against Monticello-ul.678 ===============
Item was changed:
----- Method: MCHttpRepository class>>useSharedWebClientInstance (in category 'preferences') -----
useSharedWebClientInstance
<preference: 'Use shared WebClient instance'
category: 'Monticello'
description: 'When true, use a shared WebClient instance to speed up downloads from MCHttpRepositories. Requires WebClient to be present.'
type: #Boolean>
+ ^UseSharedWebClientInstance ifNil: [ Smalltalk hasClassNamed: #WebClient ]!
- ^UseSharedWebClientInstance ifNil: [ false ]!