From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,96ae138aab3beb03 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-31 18:16:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!opentransit.net!proxad.net!news-hub.cableinet.net!blueyonder!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Localized Variable Declaration Date: Fri, 31 May 2002 11:06:35 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <3CF77998.9040806@yahoo.com> <3CF77CDA.3090805@yahoo.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1022857598 3298 136.170.200.133 (31 May 2002 15:06:38 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 31 May 2002 15:06:38 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:25135 Date: 2002-05-31T15:06:38+00:00 List-Id: I disagree with the style issue, but the last time I checked, I could declare variables in C in the middle of the code. They can even be scoped with {}, IIRC. Maybe that's not "standard" C? It seems to go past the gcc compiler I'm using. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "David Rasmussen" wrote in message news:3CF77CDA.3090805@yahoo.com... > > Oh sure, but that is pretty tedious, compared to just a one line > variable declation. The point is, to be a bit extreme, that centralized > variable declations (e.g. at the "beginning" of the function) as done in > C and Pascal, are evil. Variables should be declared close to where they > are needed, IMO. >