<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Deterministic Finalization III - Benefits, part 1</title><link>http://blogs.msdn.com/arich/archive/2004/10/18/244148.aspx</link><description>I'm pretty angry at blogs.msdn.com right now (or maybe I'm just angry at myself), as it completely nuked a post I had composed, because my session had timed out on it. I went to post, and it asked me to log in, and in the process destroyed a lot of work.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Deterministic Finalization III - Benefits, part 1</title><link>http://blogs.msdn.com/arich/archive/2004/10/18/244148.aspx#244248</link><pubDate>Tue, 19 Oct 2004 01:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:244248</guid><dc:creator>Dan Golick</dc:creator><description>Of course the C++ way to handle this is a smart pointer:&lt;br&gt;auto_gcptr&amp;lt;Font&amp;gt; font = gcnew Font();&lt;br&gt;&lt;br&gt;then when the autoptr goes out of scope it will be destructed.&lt;br&gt;&lt;br&gt;The implementation of auto_gcptr should be pretty easy but it would be nice to have this in the microsoft extensions to std.&lt;br&gt;&lt;br&gt;Now that is a big improvement over nesting usings to Dispose of a number of elements. and we get deterministic finalization by combining the scoped destructor with the Dispose pattern&lt;br&gt;</description></item><item><title>re: Deterministic Finalization III - Benefits, part 1</title><link>http://blogs.msdn.com/arich/archive/2004/10/18/244148.aspx#244520</link><pubDate>Tue, 19 Oct 2004 14:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:244520</guid><dc:creator>Rob Walker</dc:creator><description>Why not allow the compiler to automatically insert the % when calling a function that expects a handle.&lt;br&gt;&lt;br&gt;Having to write foo(%f1) complicates the abstraction needlessly.  The compiler knows that f1 _is_ a handle in reality, so it could do this without any intervention from the programmer.</description></item><item><title>re: Deterministic Finalization III - Benefits, part 1</title><link>http://blogs.msdn.com/arich/archive/2004/10/18/244148.aspx#244721</link><pubDate>Tue, 19 Oct 2004 20:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:244721</guid><dc:creator>Andy Rich</dc:creator><description>I didn't want to give the impression that I was suggesting the use of nesting &amp;quot;usings&amp;quot; - our solution to handling disposable items is to have ref types on the stack.&lt;br&gt;&lt;br&gt;As to not allowing the compiler to insert the %, it comes back to the copy constructor.  As we are going to have copy constructors for ref types, it will be possible to have a foo(R r) function signature.  &lt;br&gt;&lt;br&gt;It would confuse matters to have this sort of implicit boxing conversion for ref types as well.</description></item><item><title>Geek Notes 2004-11-08</title><link>http://blogs.msdn.com/arich/archive/2004/10/18/244148.aspx#253967</link><pubDate>Mon, 08 Nov 2004 20:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:253967</guid><dc:creator>Geek Noise</dc:creator><description /></item><item><title>
	Good Design always wins  &amp;raquo; Blog Archive   &amp;raquo; Dispose my $%!	</title><link>http://blogs.msdn.com/arich/archive/2004/10/18/244148.aspx#834250</link><pubDate>Tue, 17 Oct 2006 11:23:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:834250</guid><dc:creator>
	Good Design always wins  » Blog Archive   » Dispose my $%!	</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.gewinnt-immer.de/?p=43"&gt;http://www.gewinnt-immer.de/?p=43&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> I Love that New Syntax Smell Deterministic Finalization III | Weak Bladder</title><link>http://blogs.msdn.com/arich/archive/2004/10/18/244148.aspx#9705461</link><pubDate>Mon, 08 Jun 2009 04:24:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9705461</guid><dc:creator> I Love that New Syntax Smell Deterministic Finalization III | Weak Bladder</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://weakbladder.info/story.php?id=406"&gt;http://weakbladder.info/story.php?id=406&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>