<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dahingehend &#187; C++</title>
	<atom:link href="http://dahingehend.de/category/computer/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://dahingehend.de</link>
	<description>Romina und Marcel unterwegs</description>
	<lastBuildDate>Sat, 24 Sep 2011 11:56:49 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Visibility of Class Variables</title>
		<link>http://dahingehend.de/2005/09/15/visibility-of-class-variables/</link>
		<comments>http://dahingehend.de/2005/09/15/visibility-of-class-variables/#comments</comments>
		<pubDate>Wed, 14 Sep 2005 22:33:01 +0000</pubDate>
		<dc:creator>Marcel</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://w148.lcl.studentenwerk-bielefeld.de/~mmartin/wordpress/?p=12</guid>
		<description><![CDATA[I did not check it in the C++ standard, but as I understand it, variables, typedefs and functions are not only visible from the point of declaration, but within the entire class. So the following will compile: class A { &#8230; <a href="http://dahingehend.de/2005/09/15/visibility-of-class-variables/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I did not check it in the C++ standard, but as I understand it, variables, typedefs and functions are not only visible from the point of declaration, but within the <em>entire class</em>. So the following will compile:</p>
<div style="white-space:pre;">
class A {<br />
public:<br />
  A() {<br />
    private_type var;<br />
    private_variable = 5;<br />
    private_function();<br />
  }</p>
<p>private:<br />
  typedef int private_type;<br />
  int private_variable;<br />
  void private_function();<br />
};
</p></div>
<p>Don&#8217;t use a private typedef within the parameter declaration of a public class, though. It may work, but it shouldn&#8217;t since whoever uses that function should also have the types of the parameters available.</p>
]]></content:encoded>
			<wfw:commentRss>http://dahingehend.de/2005/09/15/visibility-of-class-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

