<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</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 Marcel,</p>
<p><br>
</p>
<p>which bugs are there that are not fixed with <span>Kernel-ct.1339? :-)</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p><span>Christoph</span></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div class="_rp_T4" id="Item.MessagePartBody">
<div class="_rp_U4 ms-font-weight-regular ms-font-color-neutralDark rpHighlightAllClass rpHighlightBodyClass" id="Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont">
<div><font size="3" color="black"><span style="font-size:12pt"><a href="http://www.hpi.de/" target="_blank" rel="noopener noreferrer" id="LPNoLP"><font size="2"><span id="LPlnk909538"><font color="#757B80"></font></span></font></a></span></font></div>
</font></div>
</div>
</font></div>
</div>
</div>
</div>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</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 Taeumel, Marcel<br>
<b>Gesendet:</b> Mittwoch, 21. Oktober 2020 15:40:50<br>
<b>An:</b> squeak-dev<br>
<b>Betreff:</b> Re: [squeak-dev] Debugger / Simulator cannot simulate (some) objects as methods</font>
<div> </div>
</div>
<div>
<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
Hi Christan,
<div><br>
</div>
<div>the object-as-method support in the debuuger and code simulator has never been good. :-( Not back in Squeak 3.x, not now. Maybe we can fix some of the most urgent bugs. :-)</div>
<div><br>
</div>
<div>Best,</div>
<div>Marcel</div>
<div class="mb_sig"></div>
<blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
<p style="color: #AAAAAA; margin-top: 10px;">Am 21.10.2020 15:09:35 schrieb cmfcmf <cmfcmf.flach@gmail.com>:</p>
<div style="font-family:Arial,Helvetica,sans-serif">Hi,<br>
<br>
when using simple objects as methods, the simulator (and therefore the<br>
debugger also) raises an error if the object used as method does not<br>
implement certain methods from CompiledMethod (e.g., numArgs). If such code<br>
is debugged, the debugger opens a never-ending stream of error windows.<br>
<br>
I am under the (possibly wrong) assumption that objects as methods should<br>
_not_ need to implement the complete CompiledMethod protocol to be<br>
compatible with simulation and debugging.<br>
<br>
I have attached a failing test called Context2Test that uses the simulator<br>
to simulate a call of an object as method. You can also see the<br>
"never-ending stream of error windows" by placing a "self halt" at the top<br>
of the test and then stepping through the first assertion using the "over"<br>
button. WARNING: Might make your image unusable.<br>
<br>
The root cause is the Context >> #send:to:with:lookupIn: method which<br>
assumes that all methods are CompiledMethods. I have attached a simple fix<br>
that works great for me – let me know what you think about it.<br>
<br>
Best<br>
Christian<br>
<br>
Context2Test.st <http: forum.world.stfilet372201context2test.st=""><br>
Context-sendtowithlookupIn.st<br>
<http: forum.world.stfilet372201context-sendtowithlookupin.st=""><br>
<br>
<br>
<br>
--<br>
Sent from: http://forum.world.st/Squeak-Dev-f45488.html<br>
<br>
</http:></http:></div>
</blockquote>
</div>
</div>
</body>
</html>