
On 15 Apr 2003 20:19:55 +0200 Anders Johansson <andjoh@rydsbo.net> wrote:
For one, K&R never allowed the initialization of automatic variables,
I'm sure you don't actually mean that K&R actually banned giving values to automatic variables, but if you mean "initialization at time of declaration", I can't really argue the subject with any authority since the only book still in my bookshelf is the second edition, so I can't give any quotes about K&R C. All I can say is that I've seen it in compilable code (a long time ago). Actually, I checked and corrected myself. K&R allowed the initialization of automatic variables: { int i = 10; But not aggregates, like arrays. That was one of the things the standard (C89) changed. Before C89, there were many differences between compilers and dialects of C. The C89 standard changed all that.
I have a draft copy of C99, but I have not had a need to get the actual standard. -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9