<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Lambda Expressions in C++</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C/RSS"></atom:link>
	<image>
		<url>http://ecn.channel9.msdn.com/o9/previewImages/100/480669_100x75.jpg</url>
		<title>Channel 9 - Lambda Expressions in C++</title>
		<link></link>
	</image>
	<description>In this interview, programming writer Thomas Petchel demonstrates how to use Lambda Expressions in C&amp;#43;&amp;#43;.&amp;nbsp; You can also learn more in the topic:&amp;nbsp;Lambda Expressions
 in C&amp;#43;&amp;#43;.

Kathleen McGrath
Visual Studio User Education
http://blogs.msdn.com/kathleen
</description>
	<link></link>
	<language>en</language>
	<pubDate>Fri, 24 May 2013 20:20:47 GMT</pubDate>
	<lastBuildDate>Fri, 24 May 2013 20:20:47 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: Lambda Expressions in C++</title>
		<description>
			<![CDATA[
<p>Functions can maintain state if you use static to declare the variables, e.g.,</p>
<p>&nbsp;</p>
<pre>int next()</pre>
<pre>{</pre>
<pre>&nbsp;&nbsp; &nbsp;static int gn = 0;</pre>
<pre>&nbsp;&nbsp; &nbsp;return gn&#43;&#43;;</pre>
<pre>}</pre>
<p>&nbsp;</p>
<p>I don't recommend doing this, but it is technically possible, contrary to what was stated in the video.</p>
<p>&nbsp;</p>
<p>Also, the second program Thomas wrote summed the primes in the range [3..20], not the first 20 prime numbers.</p>
<p>posted by joechung</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633841924160000000</link>
		<pubDate>Sun, 26 Jul 2009 08:06:56 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633841924160000000</guid>
		<dc:creator>joechung</dc:creator>
	</item>
	<item>
		<title>Re: Lambda Expressions in C++</title>
		<description>
			<![CDATA[
<p>Will extension methods also be there? <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></p>
<p>posted by zproxy</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633842711000000000</link>
		<pubDate>Mon, 27 Jul 2009 05:58:20 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633842711000000000</guid>
		<dc:creator>zproxy</dc:creator>
	</item>
	<item>
		<title>Re: Lambda Expressions in C++</title>
		<description>
			<![CDATA[
<p>Hi Joe,</p>
<p>&nbsp;</p>
<p>Yes, you're correct that you can use static variables to maintain state between function calls. Perhaps it's better to say that lambda expressions enable you to
<em>share state</em> between a function and its caller, because a static local variable is only accessible from the scope of the function in which it is defined.</p>
<p>&nbsp;</p>
<p>You also caught me saying &quot;the first 20 prime numbers&quot;. I realized later that&nbsp;I said this. Thanks for the correction. <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-14.gif' alt='Devil' />
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>posted by Thomas Petchel</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633843332390000000</link>
		<pubDate>Mon, 27 Jul 2009 23:13:59 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633843332390000000</guid>
		<dc:creator>Thomas Petchel</dc:creator>
	</item>
	<item>
		<title>Re: Lambda Expressions in C++</title>
		<description>
			<![CDATA[
<p>do we need them? <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-5.gif' alt='Wink' /></p>
<p>C&#43;&#43; allows non-member functions. Problem solved. <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></p>
<p>&nbsp;</p>
<p>posted by jalf</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633844016950000000</link>
		<pubDate>Tue, 28 Jul 2009 18:14:55 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633844016950000000</guid>
		<dc:creator>jalf</dc:creator>
	</item>
	<item>
		<title>Re: Lambda Expressions in C++</title>
		<description>
			<![CDATA[
<p>I think lambda are great!!! I wish more people would learn how to use them when they first start learning how to program.&nbsp; I sometimes find when you are teaching the basics of computer programming to beginning programmers the old-style methods are usually
 the best,</p>
<p>posted by neilfmorrow00</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633844760250000000</link>
		<pubDate>Wed, 29 Jul 2009 14:53:45 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633844760250000000</guid>
		<dc:creator>neilfmorrow00</dc:creator>
	</item>
	<item>
		<title>Re: Lambda Expressions in C++</title>
		<description>
			<![CDATA[
<p>By the way, prime numbers start with 2, not 3!</p>
<p>posted by Corrector</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633848641400000000</link>
		<pubDate>Mon, 03 Aug 2009 02:42:20 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c633848641400000000</guid>
		<dc:creator>Corrector</dc:creator>
	</item>
	<item>
		<title>Re: Lambda Expressions in C++</title>
		<description>
			<![CDATA[Where did the high quality video version go ?I can't see the text !&nbsp;<p>posted by wtf</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c634203601880000000</link>
		<pubDate>Fri, 17 Sep 2010 22:43:08 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c634203601880000000</guid>
		<dc:creator>wtf</dc:creator>
	</item>
	<item>
		<title>Re: Lambda Expressions in C++</title>
		<description>
			<![CDATA[I cant see the code in the video, can you please send me the code.<p>posted by San</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c634264973140000000</link>
		<pubDate>Sat, 27 Nov 2010 23:28:34 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/kmcgrath/Lambda-Expressions-in-C#c634264973140000000</guid>
		<dc:creator>San</dc:creator>
	</item>
</channel>
</rss>