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

Marcel Taeumel marcel.taeumel at hpi.de
Tue Jun 9 14:19:59 UTC 2020


Hi Jakob,

does Tools-mt.973 (in Trunk) work for you? 

Best,
Marcel
Am 09.06.2020 16:07:14 schrieb Marcel Taeumel <marcel.taeumel at hpi.de>:
Hi Jakob,

such a fix should address the comment in the method which states why it was that way. :o)

You can do-it "ThisContext top inspect" to inspect the object on stack top.

Best,
Marcel
Am 06.06.2020 18:29:23 schrieb commits at source.squeak.org <commits at source.squeak.org>:
A new version of Tools was added to project The Inbox:
http://source.squeak.org/inbox/Tools-jr.972.mcz

==================== 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') -----
fieldStackTop
"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: ['']];
printValueAsIs;
valueGetterExpression: 'ThisContext top';
yourself!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200609/a8087703/attachment.html>


More information about the Squeak-dev mailing list