<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Delegators #2 &#8211; C++ &amp; Win32</title>
	<atom:link href="http://www.ragestorm.net/blogs/?feed=rss2&#038;p=36" rel="self" type="application/rss+xml" />
	<link>http://www.ragestorm.net/blogs/?p=36</link>
	<description>An Arkon Blog</description>
	<lastBuildDate>Sun, 19 May 2013 08:45:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
	<item>
		<title>By: lorg</title>
		<link>http://www.ragestorm.net/blogs/?p=36&#038;cpage=1#comment-673</link>
		<dc:creator>lorg</dc:creator>
		<pubDate>Sat, 17 Nov 2007 15:10:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ragestorm.net/blogs/?p=36#comment-673</guid>
		<description><![CDATA[By the way, Boost has libraries other than bind that achieve similar purposes. Check out http://www.boost.org/libs/libraries.htm#Function-objects]]></description>
		<content:encoded><![CDATA[<p>By the way, Boost has libraries other than bind that achieve similar purposes. Check out <a href="http://www.boost.org/libs/libraries.htm#Function-objects" rel="nofollow">http://www.boost.org/libs/libraries.htm#Function-objects</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arkon</title>
		<link>http://www.ragestorm.net/blogs/?p=36&#038;cpage=1#comment-672</link>
		<dc:creator>arkon</dc:creator>
		<pubDate>Sat, 17 Nov 2007 15:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.ragestorm.net/blogs/?p=36#comment-672</guid>
		<description><![CDATA[Oh I will take a look at boost.bind. In Python this all thing is a joke. That&#039;s why some libraries use Assembly. I will cover that in next &#039;delegators&#039; post.]]></description>
		<content:encoded><![CDATA[<p>Oh I will take a look at boost.bind. In Python this all thing is a joke. That&#8217;s why some libraries use Assembly. I will cover that in next &#8216;delegators&#8217; post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lorg</title>
		<link>http://www.ragestorm.net/blogs/?p=36&#038;cpage=1#comment-671</link>
		<dc:creator>lorg</dc:creator>
		<pubDate>Sat, 17 Nov 2007 14:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.ragestorm.net/blogs/?p=36#comment-671</guid>
		<description><![CDATA[Although specifically for this case it won&#039;t work, there are ways to work out similar problems. (If the WndProc wasn&#039;t shared across different instances).

Here is some example code:

void * my_callback(void* arg) {
    //bla
}
typedef void* (*callback_func)(void *);
void some_caller(callback_func f);

You want my_callback to also get another argument, not passed along by some_caller. Well, in Python you&#039;d do either of the following - pass a functor, an object with a __call__ method, or use functools.partial, or any other equivalent trick.
Turns out, in C++ you could do the same thing, using boost.bind (and other similar libraries), and also, create a functor (an object with operator()). 

Besides that, nice one!]]></description>
		<content:encoded><![CDATA[<p>Although specifically for this case it won&#8217;t work, there are ways to work out similar problems. (If the WndProc wasn&#8217;t shared across different instances).</p>
<p>Here is some example code:</p>
<p>void * my_callback(void* arg) {<br />
    //bla<br />
}<br />
typedef void* (*callback_func)(void *);<br />
void some_caller(callback_func f);</p>
<p>You want my_callback to also get another argument, not passed along by some_caller. Well, in Python you&#8217;d do either of the following &#8211; pass a functor, an object with a __call__ method, or use functools.partial, or any other equivalent trick.<br />
Turns out, in C++ you could do the same thing, using boost.bind (and other similar libraries), and also, create a functor (an object with operator()). </p>
<p>Besides that, nice one!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
