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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,41100a78496a4c71 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-04 08:47:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!newsfeed.mathworks.com!cyclone.swbell.net!bos-service1.ext.raytheon.com!bos-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3CAC838E.1BDD2C0F@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: SLOC! (was Nethack! (was): AdaGames) References: <98104da8.0203280310.143a1c18@posting.google.com> <4519e058.0203290613.73b55af4@posting.google.com> <6g4gaugv9a85i56kvgcgmu4h2jkjprutec@4ax.com> <4519e058.0204010704.ed2cd06@posting.google.com> <4519e058.0204021030.14127b06@posting.google.com> <4519e058.0204030750.78a30287@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 04 Apr 2002 11:47:10 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 1017938844 151.168.144.162 (Thu, 04 Apr 2002 11:47:24 EST) NNTP-Posting-Date: Thu, 04 Apr 2002 11:47:24 EST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:22103 Date: 2002-04-04T11:47:10-05:00 List-Id: > Yes and also you loose for: > > if sth then > elsif sth then > else > end if; > > This would be 1, but it should be 3 ? I'm not sure how a SLOC is > defined. I count it one for the "if" (or for the semicolon on the end of it) plus one for each statement within it, which also has a semicolon. -- Wes Groleau http://freepages.rootsweb.com/~wgroleau