This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Stupid typedef question / g++
- From: Ben Davis <bnd25 at cam dot ac dot uk>
- To: SA <bullet dot train at ntlworld dot com>,gcc-help at gcc dot gnu dot org
- Date: Fri, 24 Jan 2003 17:02:38 +0000
- Subject: Re: Stupid typedef question / g++
- References: <200301241517.27441.bullet.train@ntlworld.com>
(Sorry if you get too many copies of this, SA. I got the address wrong for
the mailing list, and I didn't know if you'd got your copy :)
On Friday 24 January 2003 3:17 pm, you wrote:
> Should this work?
>
> // start
> #include <stdio.h>
> typedef int TYPE1;
> typedef int TYPE2;
typedef simply gives you a name by which to refer to a (possibly more
complex) type. I'm afraid it doesn't offer any segregation between the types.
You could remove the casts and your code would still be completely valid.
I too would be interested to know of a way of doing this...
Ben