This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: GCC headers and DJGPP port (OT)
- To: <gcc at gcc dot gnu dot org>
- Subject: RE: GCC headers and DJGPP port (OT)
- From: "Akbar A." <syedali011 at earthlink dot net>
- Date: Sun, 23 Jul 2000 15:57:42 -0700
sorry for me being so new at compiler development and learning about the
design of programmign languages.
but, where can i info or the manual sheet about the new specfications?
>I think the "enum is a normal integer" thing is a much bigger
>issue type-checking-wise.
?
thanks in advance.
akbar A.
-----Original Message-----
From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org]On Behalf Of
Linus Torvalds
Sent: Sunday, July 23, 2000 12:13 PM
To: Phil Edwards
Cc: gcc@gcc.gnu.org
Subject: Re: GCC headers and DJGPP port (OT)
On Sun, 23 Jul 2000, Phil Edwards wrote:
>
> > That was one of my pet peeves about C++: I always considered the
> > historical "#define NULL 0" to be complete braindamage due to lack of
> > even the simplest kind of type-checking (and matching to a pointer type
> > is just one small portion of that type-checking - getting sane and
> > appropriate warnings is quite important).
>
> Funny, that's always been one of my pet peeves about C. :-)
Hmm.. In C you _can_ avoid type-checking, but it's not that hard to make
it reasonably strongly typed: using gcc the magic flags are "-Wall
-Wstrict-prototypes", and some simple rules.
You still get all the implicit integer and FP conversions done, and that
can be occasionally painful, but not doing them is even more painful, so..
I don't think "void *" is a problem. It just should be used with extreme
caution. I think the "enum is a normal integer" thing is a much bigger
issue type-checking-wise.
Linus