Deutsch   English   Français   Italiano  
<vtresq$15f9f$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
Newsgroups: comp.os.vms
Subject: Re: Clair Grant on VMS code base
Date: Thu, 17 Apr 2025 17:48:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <vtresq$15f9f$1@dont-email.me>
References: <vsh5m5$3is6e$1@dont-email.me> <vtj025$18n4d$1@dont-email.me> <vtj2tu$1cfo8$1@dont-email.me> <67fee5b8$0$708$14726298@news.sunsite.dk> <vtplin$9us$2@reader1.panix.com> <m6ca1qF8fe6U1@mid.individual.net> <6800f631$0$709$14726298@news.sunsite.dk> <m6cfe5F8fe6U2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 17 Apr 2025 19:48:11 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="996a99b5b318476d1932001273ebe5ab";
	logging-data="1228079"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19bJ+kYcEOdPOHDYGt8lTOJLwXrJldUjW8="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:bI4nvg0QoSDi+6AF+jQqHhL5PFg=
Bytes: 2417

On 2025-04-17, bill <bill.gunshannon@gmail.com> wrote:
> On 4/17/2025 8:38 AM, Arne Vajh�j wrote:
>> On 4/17/2025 8:21 AM, bill wrote:
>>> On 4/16/2025 9:29 PM, Dan Cross wrote:
>>>> Most modern code-counting tools _are_ language aware.� Whether
>>>> they do a better or worse job for each given language may be a
>>>> matter of debate, but most at least recognize different
>>>> languages and have some knowledge of their semantics.
>>>>
>>> I wonder how they would handle BASIC?� :-)
>>>
>>> 10 FOR X = 1 TO 10
>>> 20 PRINT X
>>> 30 NEXT X
>>>
>>> 10 FOR X = 1 TO 10:PRINT X:NEXT X
>>>
>>> Is the snippet above one line of code or three?
>> 
>> Given that they count non-blank non-comment lines then ...
>> 
>
> Yes, but which is it?
> Would it be three in one case and one in the other even though it is the
> exact same snippet?
>

Number of statements, not number of lines. That makes it 3 statements
following my reasoning or 2 with Arne's reasoning. Either way, it's
still the exact same number of statements in both cases.

Simon.

-- 
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.