<?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: Can I Use Typedef&#8217;s in C#?</title>
	<atom:link href="http://gregs-blog.com/2008/02/15/can-i-use-typedefs-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://gregs-blog.com/2008/02/15/can-i-use-typedefs-in-c/</link>
	<description>A Blog about Graphics Programming, Game Programming, Tips and Tricks</description>
	<lastBuildDate>Mon, 16 Jan 2012 05:05:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: gregd1024</title>
		<link>http://gregs-blog.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1747</link>
		<dc:creator><![CDATA[gregd1024]]></dc:creator>
		<pubDate>Sat, 13 Mar 2010 20:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://gregdolleysblog.wordpress.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1747</guid>
		<description><![CDATA[A short variable in C is the same size as in C# (both take two bytes).

-Greg Dolley]]></description>
		<content:encoded><![CDATA[<p>A short variable in C is the same size as in C# (both take two bytes).</p>
<p>-Greg Dolley</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Su2anna</title>
		<link>http://gregs-blog.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1703</link>
		<dc:creator><![CDATA[Su2anna]]></dc:creator>
		<pubDate>Thu, 24 Dec 2009 20:47:50 +0000</pubDate>
		<guid isPermaLink="false">http://gregdolleysblog.wordpress.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1703</guid>
		<description><![CDATA[does it mean like this

in C

short x;// takes 2 Byte

when i use x in C#

short x;// takes 2 Byte

..................................???]]></description>
		<content:encoded><![CDATA[<p>does it mean like this</p>
<p>in C</p>
<p>short x;// takes 2 Byte</p>
<p>when i use x in C#</p>
<p>short x;// takes 2 Byte</p>
<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gregd1024</title>
		<link>http://gregs-blog.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1702</link>
		<dc:creator><![CDATA[gregd1024]]></dc:creator>
		<pubDate>Thu, 24 Dec 2009 05:19:11 +0000</pubDate>
		<guid isPermaLink="false">http://gregdolleysblog.wordpress.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1702</guid>
		<description><![CDATA[Yes, a C++ &quot;short&quot; is an Int16 in C#.

-Greg Dolley]]></description>
		<content:encoded><![CDATA[<p>Yes, a C++ &#8220;short&#8221; is an Int16 in C#.</p>
<p>-Greg Dolley</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Su2anna</title>
		<link>http://gregs-blog.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1701</link>
		<dc:creator><![CDATA[Su2anna]]></dc:creator>
		<pubDate>Wed, 23 Dec 2009 19:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://gregdolleysblog.wordpress.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1701</guid>
		<description><![CDATA[what is short equivalent in c#..???

(c/c++--&gt;&gt;short) == (c#--&gt;System.Int16):?]]></description>
		<content:encoded><![CDATA[<p>what is short equivalent in c#..???</p>
<p>(c/c++&#8211;&gt;&gt;short) == (c#&#8211;&gt;System.Int16):?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BrianMackey.NET &#187; typedef in C#</title>
		<link>http://gregs-blog.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1700</link>
		<dc:creator><![CDATA[BrianMackey.NET &#187; typedef in C#]]></dc:creator>
		<pubDate>Mon, 21 Dec 2009 23:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://gregdolleysblog.wordpress.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1700</guid>
		<description><![CDATA[[...] be used to create an alias for a type which appears to be a pretty cool replacement for typedef, this article brings out some interesting and important differences. Mainly, the need to define the alias in [...]]]></description>
		<content:encoded><![CDATA[<p>[...] be used to create an alias for a type which appears to be a pretty cool replacement for typedef, this article brings out some interesting and important differences. Mainly, the need to define the alias in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CVA</title>
		<link>http://gregs-blog.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1189</link>
		<dc:creator><![CDATA[CVA]]></dc:creator>
		<pubDate>Fri, 07 Aug 2009 08:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://gregdolleysblog.wordpress.com/2008/02/15/can-i-use-typedefs-in-c/#comment-1189</guid>
		<description><![CDATA[“[typedefs] not only unnecessarily obfuscates code, it can also cause programmers to accidentally misuse large structures thinking them to be simple types”

The stated intent is to “is to make it easier for programmers to comprehend source code”.
=====================================================================================================

Typedefs are actually meant to support one of the most important principles of programming: &quot;Single Point Control&quot;. 

If GLenum one day should be ulong instead of uint it would (if used correctly) only require change to one file.]]></description>
		<content:encoded><![CDATA[<p>“[typedefs] not only unnecessarily obfuscates code, it can also cause programmers to accidentally misuse large structures thinking them to be simple types”</p>
<p>The stated intent is to “is to make it easier for programmers to comprehend source code”.<br />
=====================================================================================================</p>
<p>Typedefs are actually meant to support one of the most important principles of programming: &#8220;Single Point Control&#8221;. </p>
<p>If GLenum one day should be ulong instead of uint it would (if used correctly) only require change to one file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bobobobo</title>
		<link>http://gregs-blog.com/2008/02/15/can-i-use-typedefs-in-c/#comment-777</link>
		<dc:creator><![CDATA[bobobobo]]></dc:creator>
		<pubDate>Sat, 13 Jun 2009 12:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://gregdolleysblog.wordpress.com/2008/02/15/can-i-use-typedefs-in-c/#comment-777</guid>
		<description><![CDATA[Well, you can shorten float by using 

using GLfloat = System.Single ; // typeof(System.Single) == typeof(float)

Also, if you wanted to bring an enumerated type into C# from somewhere else, you&#039;d better do something like

public enum GLenum : uint
{
  // list values
}

Which says that GLenum&#039;s underlying type is unsigned int]]></description>
		<content:encoded><![CDATA[<p>Well, you can shorten float by using </p>
<p>using GLfloat = System.Single ; // typeof(System.Single) == typeof(float)</p>
<p>Also, if you wanted to bring an enumerated type into C# from somewhere else, you&#8217;d better do something like</p>
<p>public enum GLenum : uint<br />
{<br />
  // list values<br />
}</p>
<p>Which says that GLenum&#8217;s underlying type is unsigned int</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ac</title>
		<link>http://gregs-blog.com/2008/02/15/can-i-use-typedefs-in-c/#comment-419</link>
		<dc:creator><![CDATA[ac]]></dc:creator>
		<pubDate>Mon, 21 Jul 2008 13:47:17 +0000</pubDate>
		<guid isPermaLink="false">http://gregdolleysblog.wordpress.com/2008/02/15/can-i-use-typedefs-in-c/#comment-419</guid>
		<description><![CDATA[linux kernel developer: (http://en.wikipedia.org/wiki/Typedef)

&quot;[typedefs] not only unnecessarily obfuscates code, it can also cause programmers to accidentally misuse large structures thinking them to be simple types&quot;

The stated intent is to &quot;is to make it easier for programmers to comprehend source code&quot;.

I&#039;ve done some C/C++ porting but my background is C#. There is little doubt in my mind that typedefs made the code harder to understand when I needed to.

You don&#039;t say why would you want to have this feature in C#? It could make it easier for porting legacy code to C#. So now you have some obfuscated C# ... Now we might give C# all the goodies from C++ and then call it C++/CLI but would we prefer using this language over C#? I think you&#039;ll find more C++ devs who like C# than C++/CLI if you asked around.]]></description>
		<content:encoded><![CDATA[<p>linux kernel developer: (<a href="http://en.wikipedia.org/wiki/Typedef" rel="nofollow">http://en.wikipedia.org/wiki/Typedef</a>)</p>
<p>&#8220;[typedefs] not only unnecessarily obfuscates code, it can also cause programmers to accidentally misuse large structures thinking them to be simple types&#8221;</p>
<p>The stated intent is to &#8220;is to make it easier for programmers to comprehend source code&#8221;.</p>
<p>I&#8217;ve done some C/C++ porting but my background is C#. There is little doubt in my mind that typedefs made the code harder to understand when I needed to.</p>
<p>You don&#8217;t say why would you want to have this feature in C#? It could make it easier for porting legacy code to C#. So now you have some obfuscated C# &#8230; Now we might give C# all the goodies from C++ and then call it C++/CLI but would we prefer using this language over C#? I think you&#8217;ll find more C++ devs who like C# than C++/CLI if you asked around.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

