Marcel Taeumel uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-mt.919.mcz
==================== Summary ====================
Name: Collections-mt.919
Author: mt
Time: 15 October 2020, 2:27:14.853368 pm
UUID: 13747fbe-9c7e-2341-9a7a-36420923d5f3
Ancestors: Collections-mt.918
Complements System-mt.1180. See http://forum.world.st/Proposal-Resetting-pragma-preferences-via-nil-or-rese…
=============== Diff against Collections-mt.918 ===============
Item was changed:
----- Method: TranscriptStream class>>redirectToStdOut: (in category 'preferences') -----
+ redirectToStdOut: aBooleanOrNil
- redirectToStdOut: aBoolean
"In setting up redirection, first remove all dependents that are stdout,
which may include stale files from the last session. Then add a dependency
only if asked to redirect to stdout. Blithely doing
Transcript removeDependent: FileStream stdout
raises an error if stdout is unavailable."
Transcript dependents do:
[:dep|
(dep isStream and: [dep name = #stdout]) ifTrue:
[Transcript removeDependent: dep]].
+ RedirectToStdOut := aBooleanOrNil.
+ self redirectToStdOut ifTrue:
- (RedirectToStdOut := aBoolean) ifTrue:
[Transcript addDependent: FileStream stdout]!
Marcel Taeumel uploaded a new version of ReleaseBuilder to project The Trunk:
http://source.squeak.org/trunk/ReleaseBuilder-mt.212.mcz
==================== Summary ====================
Name: ReleaseBuilder-mt.212
Author: mt
Time: 15 October 2020, 2:24:29.226368 pm
UUID: fc86eeb0-8a62-e04d-ae69-f8d7753835f7
Ancestors: ReleaseBuilder-mt.211
Complements System-mt.1180. See http://forum.world.st/Proposal-Resetting-pragma-preferences-via-nil-or-rese…
=============== Diff against ReleaseBuilder-mt.211 ===============
Item was changed:
----- Method: ReleaseBuilder class>>clearCaches (in category 'scripts') -----
clearCaches
"Clear caches, discard unused references, free space."
"1) Explicit clean-up of FONT-related stuff."
self cleanUpBitstreamVeraSans.
StrikeFont initialize.
"2) FIRST PHASE of explicit clean-up of CODE-related stuff."
self discardUserObjects.
MCFileBasedRepository flushAllCaches.
"3) Now clean-up all STATE-related stuff."
+ Preferences chooseInitialSettings.
Smalltalk cleanUp: true.
"4) SECOND PHASE of explicit clean-up of CODE-related stuff. As late as possible to get rid of all references before running this."
Smalltalk garbageCollect.
Environment allInstancesDo: [:environment | environment purgeUndeclared ].
Undeclared removeUnreferencedKeys.
!
Marcel Taeumel uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-mt.1180.mcz
==================== Summary ====================
Name: System-mt.1180
Author: mt
Time: 15 October 2020, 2:23:31.928368 pm
UUID: 25a53f29-0b97-c54a-a1f9-e19fed013518
Ancestors: System-mt.1179
Enables restoring of default values for pragma preferences. Fixes pref-setters that do not support 'nil' argument. Note that now both pref-getter and pref-setter have this 'nil' contract.
=============== Diff against System-mt.1179 ===============
Item was changed:
----- Method: PragmaPreference>>restoreDefaultValue (in category 'initialization') -----
restoreDefaultValue
+ "Try to send a reset request to the preference provider by setting the preference value to 'nil' to exploit the usual ifNil-pattern in the pragma-preference's getter.
+
+ Note that this reset is silent-by-design to be as fast as possible. If you want to send out notifications, try this:
+ self rawValue: self preferenceValue; notifyInformeeOfChange."
+
+ [[self rawValue: nil] valueSupplyingAnswer: true]
+ ifError: [:msg |
+ Transcript
+ showln: 'Failed to reset pragma preference: ', provider printString, ' >> ', getter printString;
+ showln: msg].!
- "Pragma preferences preserve their current value"!
Item was changed:
----- Method: RecentMessages class>>numberOfRecentSubmissionsToStore: (in category 'preferences') -----
+ numberOfRecentSubmissionsToStore: anIntegerOrNil
+ self default maximumSubmissionCount: (anIntegerOrNil ifNil: [30])!
- numberOfRecentSubmissionsToStore: anInteger
- self default maximumSubmissionCount: anInteger!
Marcel Taeumel uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-mt.442.mcz
==================== Summary ====================
Name: Tests-mt.442
Author: mt
Time: 14 October 2020, 3:41:13.254983 pm
UUID: 305f76ef-bf52-6d46-b99b-fa02f0bd8ed5
Ancestors: Tests-mt.441
Update test example of a pragma preference to follow the usual guidelines.
=============== Diff against Tests-mt.441 ===============
Item was changed:
----- Method: PreferencesTestExample class>>booleanPref (in category 'preferences') -----
booleanPref
<preference: 'Boolean Preference Example'
category: 'Examples'
description: 'A simple example for a boolean preference (see PreferenceExample>>booleanPref)'
type: #Boolean>
+ ^BooleanPref ifNil: [true]!
- ^BooleanPref!
Item was changed:
----- Method: PreferencesTestExample class>>colorPref (in category 'preferences') -----
colorPref
<preference: 'Color Preference Example'
category: 'Examples'
description: 'A simple example for a color preference (see PreferenceExample>>colorPref)'
type: #Color>
+ ^ColorPref ifNil: [Color green]!
- ^ColorPref!
Item was removed:
- ----- Method: PreferencesTestExample class>>initialize (in category 'preferences') -----
- initialize "PreferenceExample initialize"
- "Initialize the default values and register preferences"
- TextPref := 'Hello World'.
- NumericPref := 1234.
- BooleanPref := true.
- ColorPref := Color green.!
Item was changed:
----- Method: PreferencesTestExample class>>numericPref (in category 'preferences') -----
numericPref
<preference: 'Numeric Preference Example'
category: 'Examples'
description: 'A simple example for a numeric preference (see PreferenceExample>>numericPref)'
type: #Number>
+ ^NumericPref ifNil: [1234]!
- ^NumericPref!
Item was changed:
----- Method: PreferencesTestExample class>>textPref (in category 'preferences') -----
textPref
<preference: 'Textual Preference Example'
category: 'Examples'
description: 'A simple example for a textual preference (see PreferenceExample>>textPref)'
type: #String>
+ ^TextPref ifNil: ['Hello world']!
- ^TextPref!
Marcel Taeumel uploaded a new version of 60Deprecated to project The Trunk:
http://source.squeak.org/trunk/60Deprecated-mt.81.mcz
==================== Summary ====================
Name: 60Deprecated-mt.81
Author: mt
Time: 14 October 2020, 2:22:01.292569 pm
UUID: a2fefed6-c5dc-564a-9091-6e4d1d8ca3f8
Ancestors: 60Deprecated-mt.80
Complements Collections-mt.918
=============== Diff against 60Deprecated-mt.80 ===============
Item was added:
+ ----- Method: HashedCollection>>doWithIndex: (in category '*60Deprecated-enumerating') -----
+ doWithIndex: elementAndIndexBlock
+
+ self flag: #deprecated. "Use the new version with consistent naming."
+ ^ self withIndexDo: elementAndIndexBlock!
Item was added:
+ ----- Method: SequenceableCollection>>collectWithIndex: (in category '*60Deprecated-enumerating') -----
+ collectWithIndex: elementAndIndexBlock
+
+ self flag: #deprecated. "Use the new version with consistent naming."
+ ^ self withIndexCollect: elementAndIndexBlock!
Item was added:
+ ----- Method: SequenceableCollection>>doWithIndex: (in category '*60Deprecated-enumerating') -----
+ doWithIndex: elementAndIndexBlock
+
+ self flag: #deprecated. "Use the new version with consistent naming."
+ ^ self withIndexDo: elementAndIndexBlock!