<body><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.st/file/t372201/context2test.st="">  <br>Context-sendtowithlookupIn.st<br><http: forum.world.st/file/t372201/context-sendtowithlookupin.st="">  <br><br><br><br>--<br>Sent from: http://forum.world.st/Squeak-Dev-f45488.html<br><br></http:></http:></div></blockquote>
                                        </div></body>