FAQ 1.12--auto keyword
- From: "Bill Pursell" <bill.pursell@xxxxxxxxx>
- Date: 9 Apr 2006 08:30:43 -0700
The faq (question 1.12) states that the keyword "auto" is completely
useless.
However, it is necessary to forward declare a nested function (for
gcc...I'm not sure if this is gcc specific or a language issue.)
In other words:
int
main(void)
{
AUTO int foo(void);
return 0;
int foo (void)
{
return 0;
}
}
is valid only if AUTO is "auto" and not empty. Is this a language
issue, or is allowing the forward declaration a gcc extension?
If a language issue, should the FAQ be modified?
.
- Follow-Ups:
- Re: FAQ 1.12--auto keyword
- From: Richard Bos
- Re: FAQ 1.12--auto keyword
- From: Keith Thompson
- Re: FAQ 1.12--auto keyword
- From: Skarmander
- Re: FAQ 1.12--auto keyword
- Prev by Date: Re: VERY URGENT C PROGRAM
- Next by Date: Re: C Statistics library?
- Previous by thread: ICQ 'room' for C communication?
- Next by thread: Re: FAQ 1.12--auto keyword
- Index(es):
Relevant Pages
|