Nicolas Cellier uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-nice.1149.mcz
==================== Summary ====================
Name: System-nice.1149
Author: nice
Time: 30 March 2020, 12:50:26.196366 pm
UUID: ece53b0b-24d2-4d4b-bc91-6794a661f886
Ancestors: System-ul.1148
avoid neuron storming [...] doWhileTrue: true, it just means [...] repeat
There is no other sender of doWhileFalse: doWhileTrue: and my advice would be to deprecate them. YAGNI.
=============== Diff against System-ul.1148 ===============
Item was changed:
----- Method: MOFile>>searchByHash: (in category 'experimental') -----
searchByHash: aString
| hashValue nstr index incr key |
hashValue := self hashPjw: aString.
incr := 1 + (hashValue \\ (hashTableSize -2)).
index := (hashValue \\ hashTableSize) .
[ nstr := (hashTable at: index +1 ).
nstr = 0 ifTrue: [^nil].
key := self originalString: nstr.
key = aString ifTrue: [^self translatedString: nstr].
index >= (hashTableSize - incr)
ifTrue: [index := index - (hashTableSize - incr) ]
ifFalse:[index := index + incr].
+ ] repeat!
- ] doWhileTrue: true.!
David T. Lewis uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-dtl.884.mcz
==================== Summary ====================
Name: Collections-dtl.884
Author: dtl
Time: 28 March 2020, 8:45:29.299371 pm
UUID: c6979179-ecac-4854-a979-c9dd2dcaf88e
Ancestors: Collections-dtl.883, Collections-kfr.878
Merge. Add #clear to Transcript window menu. Proposed by Christoph in Collections-ct.869 (now in treated inbox) and merged from Karl's update in Collections-kfr.878.
=============== Diff against Collections-dtl.883 ===============
Item was added:
+ ----- Method: TranscriptStream>>addModelItemsToWindowMenu: (in category 'menu') -----
+ addModelItemsToWindowMenu: aMenu
+
+ aMenu addLine.
+ aMenu
+ add: 'clear'
+ target: self
+ action: #clear.!
David T. Lewis uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ct.876.mcz
==================== Summary ====================
Name: Collections-ct.876
Author: ct
Time: 16 February 2020, 3:38:21.566 pm
UUID: 83e0e8f6-a3b2-f540-a88e-6d833e2146fd
Ancestors: Collections-topa.873
Fixes a typo in #withFirstCharacterDownshifted
=============== Diff against Collections-topa.873 ===============
Item was changed:
----- Method: Symbol>>withFirstCharacterDownshifted (in category 'converting') -----
withFirstCharacterDownshifted
+ "Answer an object like the receiver but with first character downshifted if necessary"
- "Answer an object like the receiver but with first character downshifted if necesary"
+ ^self asString withFirstCharacterDownshifted asSymbol!
- ^self asString withFirstCharacterDownshifted asSymbol.!
David T. Lewis uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-dtl.883.mcz
==================== Summary ====================
Name: Collections-dtl.883
Author: dtl
Time: 28 March 2020, 4:33:55.690528 pm
UUID: e4123586-74d1-4edb-a358-46ce6d95631c
Ancestors: Collections-eem.882, Collections-ct.876
Remove WideString class>>initialize to followi up on an old to-do note from Andreas (see methods wtih @@@ comments for others).
Merge Collections-ct.876
=============== Diff against Collections-eem.882 ===============
Item was changed:
----- Method: Symbol>>withFirstCharacterDownshifted (in category 'converting') -----
withFirstCharacterDownshifted
+ "Answer an object like the receiver but with first character downshifted if necessary"
- "Answer an object like the receiver but with first character downshifted if necesary"
+ ^self asString withFirstCharacterDownshifted asSymbol!
- ^self asString withFirstCharacterDownshifted asSymbol.!
Item was removed:
- ----- Method: WideSymbol class>>initialize (in category 'class initialization') -----
- initialize
- Smalltalk removeFromShutDownList: self. "@@@ Remove this later @@@"!
Nicolas Cellier uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-ct.426.mcz
==================== Summary ====================
Name: Compiler-ct.426
Author: ct
Time: 28 March 2020, 1:22:49.51256 am
UUID: 761924e9-77a0-1144-9533-8a7c22c03332
Ancestors: Compiler-ct.424
Fixes a bug regarding decompilation of special selectors.
The following did not work before:
(OrderedCollection >> #asArray) decompile generate valueWithReceiver: {42} asOrderedCollection arguments: #(). "MessageNotUnderstood: OrderedCollection>>#Array=>Array"
See also this thread: http://forum.world.st/The-Inbox-EToys-ct-367-mcz-tp5105507p5114020.html
=============== Diff against Compiler-ct.424 ===============
Item was changed:
----- Method: DecompilerConstructor>>codeAnySelector: (in category 'constructor') -----
codeAnySelector: selector
^SelectorNode new
key: selector
+ index: nil
- index: 0
type: SendType!
Levente Uzonyi uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-ul.1148.mcz
==================== Summary ====================
Name: System-ul.1148
Author: ul
Time: 24 March 2020, 9:15:28.593463 pm
UUID: 79bbf013-47f5-4f3c-9e42-8f169fe22a6c
Ancestors: System-ul.1147
- create a deep copy of the keys read from the file in SecurityManager >> #loadSecurityKeys, so that they can be modified later
=============== Diff against System-ul.1147 ===============
Item was changed:
----- Method: SecurityManager>>loadSecurityKeys (in category 'fileIn/out') -----
loadSecurityKeys
"SecurityManager default loadSecurityKeys"
"Load the keys file for the current user"
| fd loc file keys |
self isInRestrictedMode ifTrue:[^self]. "no point in even trying"
loc := self secureUserDirectory. "where to get it from"
loc last = FileDirectory pathNameDelimiter ifFalse:[
loc := loc copyWith: FileDirectory pathNameDelimiter.
].
fd := FileDirectory on: loc.
file := [fd readOnlyFileNamed: keysFileName]
on: FileDoesNotExistException do:[:ex| nil].
file ifNil:[^self]. "no keys file"
+ keys := (Object readFrom: file) veryDeepCopy. "Use #veryDeepCopy to make the non-writable literal objects created by the Compiler writable."
- keys := Object readFrom: file.
privateKeyPair := keys first.
trustedKeys := keys last.
file close.!