<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>mikeash.com pyblog/friday-qa-2010-02-12-trampolining-blocks-with-mutable-code.html comments</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2010-02-12-trampolining-blocks-with-mutable-code.html#comments</link><description>mikeash.com Recent Comments</description><lastBuildDate>Sun, 10 May 2026 04:33:04 GMT</lastBuildDate><generator>PyRSS2Gen-1.0.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Alex - 2012-10-06 21:03:54</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2010-02-12-trampolining-blocks-with-mutable-code.html#comments</link><description>Nice :)
&lt;br /&gt;
&lt;br /&gt;Very informative and well-written.
&lt;br /&gt;Thanks for a good read.</description><guid isPermaLink="true">fa9aef2eeb085ad22144f6198b250c62</guid><pubDate>Sat, 06 Oct 2012 21:03:54 GMT</pubDate></item><item><title>Marc - 2010-02-19 19:39:44</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2010-02-12-trampolining-blocks-with-mutable-code.html#comments</link><description>Thanks, very informative as usual!</description><guid isPermaLink="true">1741020cc7b2bbf7d780ad113a6cab6a</guid><pubDate>Fri, 19 Feb 2010 19:39:44 GMT</pubDate></item><item><title>Keith Duncan - 2010-02-12 19:51:09</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2010-02-12-trampolining-blocks-with-mutable-code.html#comments</link><description>I wrote something similar last week, except instead of generating code I used the 10.6 associated objects API to associate the block with the object using the selector, then mapped that selector to my trampoline.
&lt;br /&gt;
&lt;br /&gt;My trampoline simply retrieves the block, replaces the receiver in $rdi with the block and jmpq to it's function pointer. That way there's no rearranging of the arguments.</description><guid isPermaLink="true">28303b01c80413539c723372dfe027a5</guid><pubDate>Fri, 12 Feb 2010 19:51:09 GMT</pubDate></item></channel></rss>
