<?xml version="1.0" encoding="utf-8"?>

<feed xmlns="http://www.w3.org/2005/Atom">
<title>@override</title>
<link href="http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/"/>
<link href="http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comments.atom" rel="self" type="application/atom+xml"/>
<author>

<name>blogtest</name>

</author>




<id>http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/</id>

<subtitle type="html">blogtest</subtitle>
<generator uri="http://ikiwiki.info/" version="3.20100831">ikiwiki</generator>
<updated>2010-08-25T01:18:17Z</updated>
<entry>
	<title>comment 1</title>

	<id>http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_1/</id>

	<link href="http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_1/"/>

	<author><name>Branimir Karadzic</name></author>





	<updated>2010-08-25T01:07:06Z</updated>
	<published>2010-08-18T21:12:20Z</published>

	<content type="html" xml:lang="en">
	&lt;p&gt;I hate Java too... &lt;img src=&quot;http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/../../smileys/smile.png&quot; alt=&quot;:)&quot; /&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;blockquote&gt;
    &lt;p&gt;virtual void do_something(char &lt;em&gt;str /&lt;/em&gt; FAIL!!! */ );&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/blockquote&gt;

&lt;p&gt;With MSVC you can enable L4 warning C4263 you&#39;ll get compiler warning in that particular case.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ay4h0tc9%28VS.80%29.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ay4h0tc9%28VS.80%29.aspx&lt;/a&gt;&lt;/p&gt;


	</content>



</entry>
<entry>
	<title>Static analysis</title>

	<id>http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_2/</id>

	<link href="http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_2/"/>

	<author><name>Arpad Borsos</name></author>





	<updated>2010-08-25T01:07:06Z</updated>
	<published>2010-08-18T21:37:10Z</published>

	<content type="html" xml:lang="en">
	C++ does not have such a feature in itself, but you can enforce it with a static analysis tool like this one: &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=500870&quot;&gt;https://bugzilla.mozilla.org/show_bug.cgi?id=500870&lt;/a&gt;

	</content>



</entry>
<entry>
	<title>c++0x</title>

	<id>http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_3/</id>

	<link href="http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_3/"/>

	<author><name>Anonymous</name></author>





	<updated>2010-08-18T21:47:44Z</updated>
	<published>2010-08-18T21:47:43Z</published>

	<content type="html" xml:lang="en">
	&lt;p&gt;c++0x has a similar feature.  I&#39;m not entirely keen on how they decided to go about it, but it&#39;s coming none-the-less.&lt;/p&gt;

&lt;p&gt;You have to use annotations and mark up not only the methods, but also the classes to indicate that you want those checks to be applied.&lt;/p&gt;

&lt;p&gt;The usual argument for those kinds of kludges is backwards compatibility.  I&#39;ve never understand why they don&#39;t just add #pragma stdver 99 commands to toggle the set of keywords the lexer will match and to alter other easy to switch behavior.  More or less the same thing GLSL does.  Oh well.&lt;/p&gt;


	</content>



</entry>
<entry>
	<title>RE: comment 1</title>

	<id>http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_4/</id>

	<link href="http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_4/"/>

	<author><name>IanRomanick</name></author>





	<updated>2010-08-18T22:55:36Z</updated>
	<published>2010-08-18T22:55:35Z</published>

	<content type="html" xml:lang="en">
	GCC has a warning, &lt;code&gt;-Woverloaded-virtual&lt;/code&gt;, that&#39;s &lt;em&gt;almost&lt;/em&gt; what I want.  It gives warnings about the legitimate overrides as well. &lt;img src=&quot;http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/../../smileys/sad.png&quot; alt=&quot;:(&quot; /&gt;

	</content>



</entry>
<entry>
	<title>Re: c++0x</title>

	<id>http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_5/</id>

	<link href="http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_5/"/>

	<author><name>Luca</name></author>





	<updated>2010-08-25T01:07:06Z</updated>
	<published>2010-08-19T12:24:53Z</published>

	<content type="html" xml:lang="en">
	&lt;p&gt;The feature is described in proposal N2928:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2928.htm&quot;&gt;http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2928.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I don&#39;t particularly like the syntax, but the feature is useful.&lt;/p&gt;


	</content>



</entry>
<entry>
	<title>Re: c++0x</title>

	<id>http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_6/</id>

	<link href="http://www.paranormal-entertainment.com/idr/blog/posts/2010-08-18T20:37:24Z-override/comment_6/"/>

	<author><name>IanRomanick</name></author>





	<updated>2010-08-25T01:18:17Z</updated>
	<published>2010-08-25T01:18:15Z</published>

	<content type="html" xml:lang="en">
	Yeah... the &lt;code&gt;[[ ]]&lt;/code&gt; notation for attributes is a bit on the ugly side, but it does seem to do the job.  On the plus side, having a standardized attribute syntax will give cbloom one less thing to &lt;a href=&quot;http://cbloomrants.blogspot.com/2010/07/07-13-10-tech-blurg.html&quot;&gt;complain about&lt;/a&gt;.

	</content>



</entry>

</feed>

