[squeak-dev] Review Request: SparseLargeTable explorerContents.1.cs
Thiede, Christoph
Christoph.Thiede at student.hpi.uni-potsdam.de
Sat Feb 26 21:22:28 UTC 2022
[cid:96b69c30-a404-4ae8-ae18-8bfa7fe5c632]
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Thiede, Christoph
Gesendet: Samstag, 26. Februar 2022 22:20:04
An: squeak-dev at lists.squeakfoundation.org
Betreff: [squeak-dev] Review Request: SparseLargeTable explorerContents.1.cs
Depends on: Review Request: SparseLargeTable enumerate+tests.1.cs<http://lists.squeakfoundation.org/pipermail/squeak-dev/2022-February/219294.html>
See also: Review Request: Bag-explorer & RunArray-explorer<http://lists.squeakfoundation.org/pipermail/squeak-dev/2022-February/218985.html>
Best,
Christoph
=============== Summary ===============
Change Set: SparseLargeTable explorerContents
Date: 26 February 2022
Author: Christoph Thiede
This changeset revises the ObjectExplorer representation of SparseLargeTables/SparseLargeArrays by only displaying non-default values next to the defaultValue variable. Depends on SparseLargeTable enumerate+tests.1.cs.
=============== Diff ===============
SparseLargeTable>>explorerContents {*Morphic-Explorer} ยท ct 2/26/2022 21:49
+ explorerContents
+
+ ^ Array streamContents: [:stream |
+ stream nextPut: (ObjectExplorerWrapper
+ with: defaultValue
+ name: 'defaultValue'
+ model: self).
+ self sparseElementsAndIndicesDo: [:element :index |
+ stream nextPut: (ObjectExplorerWrapper
+ with: element
+ name: index printString
+ model: self)]]
---
Sent from Squeak Inbox Talk<https://github.com/hpi-swa-lab/squeak-inbox-talk>
["SparseLargeTable explorerContents.1.cs"]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220226/1108c047/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 99588 bytes
Desc: pastedImage.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220226/1108c047/attachment-0001.png>
More information about the Squeak-dev
mailing list
|