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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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 10:47:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!csulb.edu!newshub.sdsu.edu!west.cox.net!cox.net!newspeer1-gui.server.ntli.net!ntli.net!newsfep1-win.server.ntli.net.POSTED!53ab2750!not-for-mail From: "martin.m.dowie" Newsgroups: comp.lang.ada References: <3CF77998.9040806@yahoo.com> <3CF77CDA.3090805@yahoo.com> <3CF78D3D.3030400@yahoo.com> <3CF79BFF.B3CD0E9F@raytheon.com> Subject: Re: Localized Variable Declaration X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Fri, 31 May 2002 18:47:27 +0100 NNTP-Posting-Host: 62.252.152.105 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep1-win.server.ntli.net 1022867255 62.252.152.105 (Fri, 31 May 2002 18:47:35 BST) NNTP-Posting-Date: Fri, 31 May 2002 18:47:35 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:25106 Date: 2002-05-31T18:47:27+01:00 List-Id: "Mark Johnson" wrote in message news:3CF79BFF.B3CD0E9F@raytheon.com... > > now you have 3 lines not 1! ;-) > > > [I noticed the smiley, but really...] If you really care that this > counts as three lines of code instead of one you need to get a better > line of code counter. It doesn't even have to be very exotic - one of > the simplest (and best?) ones I have seen for C merely counts lines that > have more than two non comment, non-white space characters in it. It is > about a page of code (mostly to count lines by function) and would still > count this example as one line. For Ada, you could change that from two > characters to two tokens (so you ignore null;) to get the same effect. > > [and no - I don't want to get into a flame war about how to count lines > (or statements) of code :-)] :-) Just so long as the rules are equivalent for each language... (i.e. if you count 'begin' etc in Ada, you have to count '{' in C - the are both there for the same reason)