<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Chris,</p>
<p><br>
</p>
<p>I am not sure whether we can (or should) make the default inspector proxy-safe. Rather, IMHO the default inspectors should handle proxies transparently and display the underlying object. For inspecting the implementation details of proxies, we have the BasicInspector,
 which is almost completely proxy-safe (the only exception I am aware of is a send to #isReadOnlyObject for the window label, for which we currently do not have a mirror primitive).</p>
<p><br>
</p>
<p>> <span>#size is a provoking message.</span></p>
<p><span><br>
</span></p>
<p><span>And #printString, #<span>longPrintString, #<span>perform:, #<span>instVarNamed:, #basicSize, and all others existing sends are not? :-)</span></span></span></span></p>
<p><span><span><span><span><br>
</span></span></span></span></p>
<p><span><span><span><span>> <span>Magma's Proxy's anyway (which don't use the mirror-primitives but the old-school Proxy pattern)</span></span></span></span></span></p>
<p><span><span><span><span><span><br>
</span></span></span></span></span></p>
<p>Just out of interest, how would you implement a proxy using mirror primitives? :-)</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Chris Muller <asqueaker@gmail.com><br>
<b>Gesendet:</b> Montag, 10. Januar 2022 02:34:00<br>
<b>An:</b> squeak dev<br>
<b>Betreff:</b> Re: [squeak-dev] The Inbox: Tools-ct.1101.mcz</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Christoph,
<div><br>
</div>
<div>I like the "Inspector" tools to be as rudimentary as possible so they can be used with Proxy's better.  At least with Magma's Proxy's anyway (which don't use the mirror-primitives but the old-school Proxy pattern), when I have an instance of MyProxy I'm
 able to inspect it without sending any provoking messages.  #size is a provoking message.
<div><br>
</div>
<div>Explorers and other more snappy tools, on the other hand, already have no chance to use with Proxys, so might be good to see there.</div>
</div>
<div><br>
</div>
<div> - Chris</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Jan 3, 2022 at 4:16 PM <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
A new version of Tools was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Tools-ct.1101.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/Tools-ct.1101.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Tools-ct.1101<br>
Author: ct<br>
Time: 3 January 2022, 11:16:09.863397 pm<br>
UUID: 97ded064-e941-f744-ac9b-642118fe8ef5<br>
Ancestors: Tools-ct.1100<br>
<br>
Proposal: Display the size of a collection in the window label.<br>
<br>
=============== Diff against Tools-ct.1100 ===============<br>
<br>
Item was added:<br>
+ ----- Method: CollectionInspector>>labelString (in category 'user interface - window') -----<br>
+ labelString<br>
+ <br>
+       ^ '{1} ({2})' translated format: {super labelString. [self object size] ifError: ['?']}!<br>
<br>
<br>
</blockquote>
</div>
</div>
</body>
</html>