[squeak-dev] The Inbox: Tools-jr.972.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jun 6 16:29:15 UTC 2020

A new version of Tools was added to project The Inbox:

==================== Summary ====================

Name: Tools-jr.972
Author: jr
Time: 6 June 2020, 6:29:12.309632 pm
UUID: 2735b7ce-1f1b-a846-9635-f225f1db5be7
Ancestors: Tools-mt.970

Fix: inspecting the stack top only inspected its printString instead.

=============== Diff against Tools-mt.970 ===============

Item was changed:
  ----- Method: ContextVariablesInspector>>fieldStackTop (in category 'fields') -----
  	"Note that #valueGetter returns the actual printString to not confuse an empty stack top with nil or an empty string. So the value pane will just stay empty if there is no stack top and it will show 'nil' or '''' otherwise."
  	^ (self newFieldForType: #stackTop key: #stackTop)
  		name: 'stack top' translated; emphasizeName;
+ 		valueGetter: [:context | context actualStackSize > 0 ifTrue: [context top] ifFalse: ['']];
- 		valueGetter: [:context | context actualStackSize > 0 ifTrue: [context top printString] ifFalse: ['']];
  		valueGetterExpression: 'ThisContext top';

More information about the Squeak-dev mailing list