<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p></p>
<div>class := Object newSubclass.</div>
<p></p>
<p></p>
<div>class addSelector: #foo: withMethod: (</div>
<p></p>
<p></p>
<div><span style="white-space:pre"></span>[:x | x squared * 2] method as: CompiledMethod).</div>
<p></p>
<p></p>
<div>class new foo: 3. "18"</div>
<p></p>
</blockquote>
<p><br>
</p>
<p>And you can even debug it :D</p>
<p><br>
</p>
<p><img size="1857" contenttype="image/png" id="img747746" style="max-width: 99.9%; user-select: none;" contextid="img553421" tabindex="0" src="cid:7a66b4ce-902b-45c2-bb25-83d2d7126d20"><br>
</p>
<p><br>
</p>
<p>This one is really crazy:</p>
<p><br>
</p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p></p>
<div></div>
<p></p>
<div>class := Object newUniqueClassInstVars: 'state' classInstVars: ''.</div>
<div>class addSelector: #foo withMethod: (</div>
<div><span style="white-space:pre"></span>[:x | gate] method as: CompiledMethod).</div>
<div>class new foo "-1.2045729113346377e-38"</div>
<p></p>
<div></div>
<p></p>
</blockquote>
<p><br>
</p>
<p>What the ...? Am I accessing any private method literals here?</p>
<p><br>
</p>
<p>Then we only need a mechanism that translates the #pushRcvr: bytecodes to another class.</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</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><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
</body>
</html>