Date: Wed, 21 May 1997 20:43:59 +0100 From: Brian Somers <brian@awfulhak.org> To: Thomas David Rivers <ponds!rivers@dg-rtp.dg.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Variable initialization Message-ID: <199705211944.UAA20321@awfulhak.demon.co.uk> In-Reply-To: Your message of "Tue, 20 May 1997 07:18:11 EDT." <199705201118.HAA25363@lakes.water.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I'll retry sending that.... dodgy reply addresses ! ;) [.....] > I believe, of course, some of the other arguments far outweigh > this concern - personally, I much prefer initializations that are > performed outside of the declaration block... for about the same > reasons cited. Heh. Not so long ago, I wrote code like: int f = 0; FILE *file = fopen( myfile, "r" ); for( ; f < maxf; f++ ) { .... It's quite tricky making yourself change so much ! I'm starting to like style(9) though (because of discussions like this that explain the reasoning). > - Dave Rivers - > > -- Brian <brian@awfulhak.org>, <brian@freebsd.org> <http://www.awfulhak.org> Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705211944.UAA20321>