Christoph Thiede uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.2141.mcz
==================== Summary ====================
Name: Morphic-ct.2141
Author: ct
Time: 24 November 2023, 8:47:14.879561 am
UUID: 153f7023-a1cf-400e-875c-0a8af0c5816c
Ancestors: Morphic-mt.2140
Categories uncategorized methods.
=============== Diff against Morphic-mt.2140 ===============
Item was changed:
+ ----- Method: DockingBarMenuMorph>>popUpAdjacentTo:forHand:from: (in category 'control') -----
- ----- Method: DockingBarMenuMorph>>popUpAdjacentTo:forHand:from: (in category 'as yet unclassified') -----
popUpAdjacentTo: rightOrLeftPoint forHand: hand from: sourceItem
| ownerInWorld world |
super popUpAdjacentTo: rightOrLeftPoint forHand: hand from: sourceItem.
"Docking bar and protruding menu should appear visually merged. Move the source item behind the receiver. If we did it the other way around, other navigators and docking bars in front of the sourceItem would cover the receiver. For the same reason, we can't use a higher different morphic layer numbers for docking bar menus because this would hide them after all other navigators."
world := owner world.
ownerInWorld := sourceItem firstOwnerSuchThat: [:thisOwner | thisOwner owner == world].
world addMorph: ownerInWorld inFrontOf: self.!
Item was changed:
+ ----- Method: SimpleButtonMorph class>>newWithLabel: (in category 'instance creation') -----
- ----- Method: SimpleButtonMorph class>>newWithLabel: (in category 'as yet unclassified') -----
newWithLabel: labelString
^ self basicNew initializeWithLabel: labelString
!
Item was changed:
+ ----- Method: TextAnchor>>printOn: (in category 'printing') -----
- ----- Method: TextAnchor>>printOn: (in category 'as yet unclassified') -----
printOn: aStream
super printOn: aStream.
aStream nextPutAll: ' for '.
self anchoredMorph printOn: aStream.!
Item was changed:
+ ----- Method: TransformMorph>>adoptPaneColor: (in category 'accessing') -----
- ----- Method: TransformMorph>>adoptPaneColor: (in category 'as yet unclassified') -----
adoptPaneColor: aColor
"Ignore. This is a window-color feature and thus not used for submorphs that are in a scroll container. Note that other layout containers are not effected such as button rows."!
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.1536.mcz
==================== Summary ====================
Name: Kernel-eem.1536
Author: eem
Time: 20 November 2023, 5:12:24.973488 pm
UUID: bf1ff5b3-69ef-4325-8575-a5c20487aa75
Ancestors: Kernel-eem.1535
Oops; fix the Context>>cannotReturn:to: comment.
=============== Diff against Kernel-eem.1535 ===============
Item was changed:
----- Method: Context>>cannotReturn:to: (in category 'private') -----
cannotReturn: result to: homeContext
+ "The receiver tried to return result to homeContext that cannot be returned from.
- "The receiver tried to return result to homeContext that no longer exists.
Capture the return pc in a BlockCannotReturn. Nil the pc to prevent repeat
attempts and/or invalid continuation. Answer the result of raising the exception."
| exception |
exception := BlockCannotReturn new.
exception
result: result;
deadHome: homeContext;
pc: self previousPc.
pc := nil.
^exception signal!
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.1535.mcz
==================== Summary ====================
Name: Kernel-eem.1535
Author: eem
Time: 20 November 2023, 5:05:17.734241 pm
UUID: 44f1833a-15d0-4166-b361-293c85a40e0b
Ancestors: Kernel-mt.1534
On a block cannot return error capture the pc of the failing return bytecode and mark the block context dead (nil its pc) so that computation cannot continue to any invalid state.
=============== Diff against Kernel-mt.1534 ===============
Item was changed:
Error subclass: #BlockCannotReturn
+ instanceVariableNames: 'pc result deadHome'
- instanceVariableNames: 'result deadHome'
classVariableNames: ''
poolDictionaries: ''
category: 'Kernel-Exceptions'!
!BlockCannotReturn commentStamp: '<historical>' prior: 0!
This class is private to the EHS implementation. Its use allows for ensured execution to survive code such as:
[self doThis.
^nil]
ensure: [self doThat]
Signaling or handling this exception is not recommended.!
Item was added:
+ ----- Method: BlockCannotReturn>>pc (in category 'accessing') -----
+ pc
+
+ ^ pc!
Item was added:
+ ----- Method: BlockCannotReturn>>pc: (in category 'accessing') -----
+ pc: pcIndex
+
+ pc := pcIndex!
Item was changed:
----- Method: Context>>cannotReturn:to: (in category 'private') -----
cannotReturn: result to: homeContext
+ "The receiver tried to return result to homeContext that no longer exists.
+ Capture the return pc in a BlockCannotReturn. Nil the pc to prevent repeat
+ attempts and/or invalid continuation. Answer the result of raising the exception."
- "The receiver tried to return result to homeContext that no longer exists."
+ | exception |
+ exception := BlockCannotReturn new.
+ exception
- ^ BlockCannotReturn new
result: result;
deadHome: homeContext;
+ pc: self previousPc.
+ pc := nil.
+ ^exception signal!
- signal!
Christoph Thiede uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ct.1056.mcz
==================== Summary ====================
Name: Collections-ct.1056
Author: ct
Time: 20 November 2023, 9:34:16.621505 pm
UUID: 1bac04f6-8681-43b9-8df2-c60b49d1cd0f
Ancestors: Collections-ct.1054
Implements missing hash on TextIndent.
=============== Diff against Collections-ct.1054 ===============
Item was added:
+ ----- Method: TextIndent>>hash (in category 'comparing') -----
+ hash
+
+ ^ self amount hash!
Christoph Thiede uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-ct.1096.mcz
==================== Summary ====================
Name: Tools-ct.1096
Author: ct
Time: 11 November 2023, 5:30:40.1038 pm
UUID: 8a3f14cf-d590-704b-a255-0603a2789a23
Ancestors: Tools-ct.1094
Proposal: Adds Process>>#browse.
Is this of interest and is it okay to do this without a hop through the ToolSet?
=============== Diff against Tools-ct.1094 ===============
Item was added:
+ ----- Method: Process>>browse (in category '*Tools-Browsing') -----
+ browse
+
+ ^ ProcessBrowser browseProcess: self!
Item was added:
+ ----- Method: ProcessBrowser class>>browseProcess: (in category 'instance creation') -----
+ browseProcess: aProcess
+
+ ^ self new
+ selectProcess: aProcess;
+ open!
Item was changed:
----- Method: ProcessBrowser class>>open (in category 'instance creation') -----
open
+
+ ^ self new open!
- ^ToolBuilder open: self new!
Item was added:
+ ----- Method: ProcessBrowser>>open (in category 'toolbuilder') -----
+ open
+
+ ^ ToolBuilder open: self!
Item was added:
+ ----- Method: ProcessBrowser>>selectProcess: (in category 'accessing') -----
+ selectProcess: aProcess
+
+ self processListIndex: (self processList indexOf: aProcess).!