<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Raising events from structures</title>
	<atom:link href="http://blog.somecreativity.com/2008/04/14/raising-events-from-structures/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.somecreativity.com/2008/04/14/raising-events-from-structures/</link>
	<description>Weblog of Siddharth Uppal</description>
	<lastBuildDate>Sun, 21 Feb 2010 10:50:19 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sid</title>
		<link>http://blog.somecreativity.com/2008/04/14/raising-events-from-structures/#comment-4681</link>
		<dc:creator>Sid</dc:creator>
		<pubDate>Mon, 05 May 2008 21:36:32 +0000</pubDate>
		<guid isPermaLink="false">http://siddhu.wordpress.com/?p=473#comment-4681</guid>
		<description>@BlackWasp: 

Thanks.

I should have mentioned about &quot;ref&quot; in the post for completeness. Caution while mixing structures and events - is the point I wanted to make.</description>
		<content:encoded><![CDATA[<p>@BlackWasp: </p>
<p>Thanks.</p>
<p>I should have mentioned about &#8220;ref&#8221; in the post for completeness. Caution while mixing structures and events &#8211; is the point I wanted to make.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BlackWasp</title>
		<link>http://blog.somecreativity.com/2008/04/14/raising-events-from-structures/#comment-4680</link>
		<dc:creator>BlackWasp</dc:creator>
		<pubDate>Mon, 05 May 2008 09:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://siddhu.wordpress.com/?p=473#comment-4680</guid>
		<description>Good tip.

Although not always the case, it is useful to think cautiously when using structures and events together.  In some cases, particularly for very lightweight structures (shouldn&#039;t all be?), an event can be useful.  In these rare situations, care should be used.  For example, the real problem in the sample code is the missing &#039;ref&#039; to ensure that HookOntoEvent receives a reference to the SomeStruct instance, rather than a copy of the structure.  Of course, if the structure is quite large then consideration should be made to using a class instead.</description>
		<content:encoded><![CDATA[<p>Good tip.</p>
<p>Although not always the case, it is useful to think cautiously when using structures and events together.  In some cases, particularly for very lightweight structures (shouldn&#8217;t all be?), an event can be useful.  In these rare situations, care should be used.  For example, the real problem in the sample code is the missing &#8216;ref&#8217; to ensure that HookOntoEvent receives a reference to the SomeStruct instance, rather than a copy of the structure.  Of course, if the structure is quite large then consideration should be made to using a class instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://blog.somecreativity.com/2008/04/14/raising-events-from-structures/#comment-4652</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Tue, 15 Apr 2008 12:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://siddhu.wordpress.com/?p=473#comment-4652</guid>
		<description>Its kind of surprising that its even allowed, seeing as this is the result.</description>
		<content:encoded><![CDATA[<p>Its kind of surprising that its even allowed, seeing as this is the result.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
