Re: ANSI C

2003-03-24 Thread Mark Veltzer
On Monday 24 March 2003 23:57, you wrote: > Hi! > > I am looking for information on the behavior of ANSI C while compiling > the following method: > > int f1(int a) { > int a = a; > return a; > } > > > in the current versions of gcc this compiles, and shadowing of the given > a is allowed w

Re: ANSI C

2003-03-24 Thread Oleg Goldshmidt
Mark Veltzer <[EMAIL PROTECTED]> writes: > > If i am not mistaken - this in not so in ANSI C [i might be mistaken... > > the ritchie&ker. book is not so clear about this point] It gives a warning about shadowing. I don't know what the standard says about it. For all I know, it may be implementati

Re: ANSI C

2003-03-25 Thread Nadav Har'El
On Tue, Mar 25, 2003, Mark Veltzer wrote about "Re: ANSI C": > P.S. Ritchie and Kerninghan didn't even dream of GCC when they thought of C so > the small book is of little use these days. Actually, Kernighan & Ritchie have a second edition of their book, published in 1

Re: ANSI C

2003-03-25 Thread Oleg Goldshmidt
Vadim Vygonets <[EMAIL PROTECTED]> writes: > Quoth Oleg Goldshmidt on Tue, Mar 25, 2003: > > > > how compliant is gcc with ansi? > > > > Very. > > C99? http://gcc.gnu.org/c99status.html -- Oleg Goldshmidt | [EMAIL PROTECTED] = T

Re: ANSI C

2003-03-25 Thread Oleg Goldshmidt
Vadim Vygonets <[EMAIL PROTECTED]> writes: > Quoth Nadav Har'El on Tue, Mar 25, 2003: > > And of course, there is the text of the standard itself, which ISO probably > > charge $1000 (or something similarly outrageous) > > The Standard may (probably) be obtained from the Standards > Institution o

Re: ANSI C

2003-03-25 Thread Vadim Vygonets
Quoth Oleg Goldshmidt on Tue, Mar 25, 2003: > Mark Veltzer <[EMAIL PROTECTED]> writes: > > > > If i am not mistaken - this in not so in ANSI C [i might be mistaken... > > > the ritchie&ker. book is not so clear about this point] > > It gives a warning about shadowing. I don't know what the standa

Re: ANSI C

2003-03-25 Thread Vadim Vygonets
Quoth Nadav Har'El on Tue, Mar 25, 2003: > On Tue, Mar 25, 2003, Mark Veltzer wrote about "Re: ANSI C": > > P.S. Ritchie and Kerninghan didn't even dream of GCC when they thought of C so > > the small book is of little use these days. > > Actually, Ker

RE: ANSI C

2003-03-25 Thread Aviram Jenik
Vadim Vygonets wrote: > > > > Actually, Kernighan & Ritchie have a second edition of > their book, published > > in 1988, which corresponds to ANSI C. > > It's quite hard to get the first edition these days, don't you > agree? > Depends on who you ask - I've got a first-edition right here on m

Re: ANSI C

2003-03-25 Thread Nadav Har'El
On Tue, Mar 25, 2003, Vadim Vygonets wrote about "Re: ANSI C": > > Actually, Kernighan & Ritchie have a second edition of their book, published > > in 1988, which corresponds to ANSI C. > > It's quite hard to get the first edition these days, don't you

RE: ANSI C

2003-03-25 Thread Beni Cherniavsky
Aviram Jenik wrote on 2003-03-25: > Vadim Vygonets wrote: > > > > > > Actually, Kernighan & Ritchie have a second edition of > > their book, published > > > in 1988, which corresponds to ANSI C. > > > > It's quite hard to get the first edition these days, don't you > > agree? > > > > Depends on wh

RE: ANSI C

2003-03-25 Thread Aviram Jenik
Beni Cherniavsky Wrote: > There is a refernce section at the end (at least in the second > edition). Admittedly, it's a too dry and concise to look up > conveniently. But the book is great, I learnt from it too. > You're right - I didn't remember that, but I just looked and there is indeed an a

Re: ANSI C

2003-03-25 Thread Vadim Vygonets
Quoth Nadav Har'El on Tue, Mar 25, 2003: > On Tue, Mar 25, 2003, Vadim Vygonets wrote about "Re: ANSI C": > > A publically available draft from August 3, 1998: > > Well, I suppose this cannot be a draft of a standard that was defined over > 8 years earlier...

Re: ANSI C

2003-03-25 Thread Nadav Har'El
On Tue, Mar 25, 2003, Vadim Vygonets wrote about "Re: ANSI C": > > I suppose it is a draft of a newer standard (?) called > > C9X. When people speak of ANSI C, they don't normally refer to C9X. If you > > want your programs to be very portable, you better not rel

Re: ANSI C

2003-03-26 Thread Vadim Vygonets
Quoth Nadav Har'El on Tue, Mar 25, 2003: > On Tue, Mar 25, 2003, Vadim Vygonets wrote about "Re: ANSI C": > > > I suppose it is a draft of a newer standard (?) called > > > C9X. When people speak of ANSI C, they don't normally refer to C9X. If you > >