> [  ] Show string elements in object explorer<br>
> [x] Show integer representations in object explorer <br>
> [  ] Show character representations in object explorer<br>
<br>
+1!<br>
<br>
Another possible representation would be a list of bits:<br>
<br>
116<br>
  |-- hex: '74'<br>
  |-- oct: '164'<br>
  |-- bin: '0111 0100'<br>
  |-- bits: #(0 0 0 0 0 0 0 0 0 1 1 1 0 1 0 0)<br>
    |-- 1: 0<br>
    |-- 2: 0<br>
    |-- ...<br>
<br>
Best,<br>
Christoph<br>
<br>
<font color="#808080">---<br>
<br>
</font><i><font color="#808080">Sent from </font></i><i><u><a href="https://github.com/hpi-swa-lab/squeak-inbox-talk"><font color="#808080">Squeak Inbox Talk</font></a></u></i><br>
<br>
> Hi Stéphane.<br>
> <br>
> > Why is an ObjectExplorer telling you all these things about 3 and<br>
> > nothing at all about 'three'?<br>
> <br>
> I have no clue. :-) I am in favor of configuring the ObjectExplorer in a more consistent way, maybe through a preference.<br>
> <br>
> One could as well interpret an integer as a character and vice versa.<br>
> <br>
> 'three'<br>
>   |-- $t<br>
>     |-- 116<br>
>       |-- hex : '74'<br>
>       |-- oct ...<br>
>       |-- ...<br>
>   |-- $h<br>
>   |-- $r<br>
>   |-- $e<br>
> <br>
>   |-- $e<br>
> <br>
> <br>
> But this would never stop because '74' is a string again. :-D<br>
> <br>
> Expanding 'three' to its elements is also kind of different form showing various representations for integers. Hmm... a simple step forward could be:<br>
> <br>
> [  ] Show string elements in object explorer<br>
> [x] Show integer representations in object explorer <br>
> [  ] Show character representations in object explorer<br>
> <br>
> The [x][  ] mark the default preference value.<br>
> <br>
> Best,<br>
> Marcel<br>
> Am 11.06.2021 08:32:59 schrieb Stéphane Rollandin <lecteur at zogotounga.net>:<br>
> > Updates representation of integers in ObjectExplorer. For a small discussion, see http://forum.world.st/The-Trunk-Morphic-mt-1769-mcz-tp5129501p5129804.html<br>
> <br>
> I'm a bit late to the party, but may I suggest to make the whole integer<br>
> representation in ObjectExplorer a preference?<br>
> <br>
> Rationale: when peeking at an ObjectExplorer tree, one gets a first idea<br>
> of the structure of an object. Having a subtree for each Integer gives<br>
> the wrong feeling, that there is some extra structure there, while it is<br>
> only some extra information about the same very simple object.<br>
> <br>
> So there is an obfuscation inherent to having the explorer represent in<br>
> the very same way two different categories of information: one about<br>
> structure, and one about representation.<br>
> <br>
> This goes for strings too, although in the opposite way: if you explore<br>
> 'abc', you will not get any information on $a, $b or $c from there (like<br>
> their ASCII code, for example) - this times the explorer hides structure.<br>
> <br>
> I am not sure about my suggestion for a preference, so let me restate<br>
> the problem as I see it as follows:<br>
> <br>
> Why is an ObjectExplorer telling you all these things about 3 and<br>
> nothing at all about 'three'?<br>
> <br>
> <br>
> Stef<br>
> <br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210611/272a2dcc/attachment.html><br>
> <br>