Re: C is too old? opinions?
- From: Richard <rgrdev@xxxxxxxxx>
- Date: Fri, 28 Sep 2007 16:13:08 +0200
"Charlie Gordon" <news@xxxxxxxxxxx> writes:
"jacob navia" <jacob@xxxxxxxxxxxxxxxx> a écrit dans le message de news:
46fa7a46$0$5101$ba4acef3@xxxxxxxxxxxxxxxxx
[...]
Why not
#pragma once
Chqrlie?
As others have mentioned, portability is an issue.
You insisted that this pragma is supported by many compilers, among which
gcc.
I cannot find any mention of it in the documentation for my current gcc
version 4.1.x.
If they support if, it is undocumented and probably deprecated.
So I will not use it..
Then don't. Easy. But for many C programmers who daily weigh up the
benefits of standard adherent C and "mainstream adopted" C it is not
such an easy decision. If I was building a code base for the main 3 PC
OS platforms and all the mainstream compilers used this pragma I know I
would use it.
.
- Follow-Ups:
- Re: C is too old? opinions?
- From: Keith Thompson
- Re: C is too old? opinions?
- From: Charlie Gordon
- Re: C is too old? opinions?
- References:
- Re: C is too old? opinions?
- From: Jack Klein
- Re: C is too old? opinions?
- From: pete
- Re: C is too old? opinions?
- From: Keith Thompson
- Re: C is too old? opinions?
- From: Charlie Gordon
- Re: C is too old? opinions?
- From: jacob navia
- Re: C is too old? opinions?
- From: Charlie Gordon
- Re: C is too old? opinions?
- Prev by Date: Re: Set all bits to 1 in an array of raw bytes
- Next by Date: Re: Set all bits to 1 in an array of raw bytes
- Previous by thread: Re: C is too old? opinions?
- Next by thread: Re: C is too old? opinions?
- Index(es):
Relevant Pages
|