Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Function reject.


computers / comp.os.vms / different defaults in batch

SubjectAuthor
* different defaults in batchArne Vajhøj
+* Re: different defaults in batchSteven Schweda
|`- Re: different defaults in batchArne Vajhøj
`* Re: different defaults in batchSimon Clubley
 `* Re: different defaults in batchSimon Clubley
  `* Re: different defaults in batchArne Vajhøj
   `* Re: different defaults in batchDave Froble
    `* Re: different defaults in batchArne Vajhøj
     `* Re: different defaults in batchgah4
      +* Re: different defaults in batchbill
      |`* Re: different defaults in batchArne Vajhøj
      | +* Re: different defaults in batchbill
      | |+- Re: different defaults in batchMartin Rushton
      | |+* Re: different defaults in batchArne Vajhøj
      | ||`* Re: different defaults in batchArne Vajhøj
      | || `* Re: different defaults in batchbill
      | ||  `* Re: different defaults in batchDave Froble
      | ||   `* Re: different defaults in batchbill
      | ||    +- Re: different defaults in batchabrsvc
      | ||    `* Re: different defaults in batchDave Froble
      | ||     +- Re: different defaults in batchabrsvc
      | ||     +* Re: different defaults in batchbill
      | ||     |`- Re: different defaults in batchArne Vajhøj
      | ||     `* Re: different defaults in batchSingle Stage to Orbit
      | ||      `* Re: different defaults in batchDave Froble
      | ||       `- Re: different defaults in batchSingle Stage to Orbit
      | |+* Re: different defaults in batchJohnny Billquist
      | ||`* Re: different defaults in batchbill
      | || +* Re: different defaults in batchArne Vajhøj
      | || |`* Re: different defaults in batchbill
      | || | +* Re: different defaults in batchArne Vajhøj
      | || | |`* Re: different defaults in batchbill
      | || | | +- Re: different defaults in batchArne Vajhøj
      | || | | `* Re: different defaults in batchJohnny Billquist
      | || | |  `- Re: different defaults in batchJake Hamby (Solid State Jake)
      | || | +- Re: different defaults in batchSteven Schweda
      | || | `- Re: different defaults in batchArne Vajhøj
      | || `- Re: different defaults in batchJohnny Billquist
      | |`- Re: different defaults in batchgah4
      | `* Re: different defaults in batchgah4
      |  `* Re: different defaults in batchJohnny Billquist
      |   `- Re: different defaults in batchSimon Clubley
      `* Re: different defaults in batchArne Vajhøj
       +* Re: different defaults in batchDave Froble
       |+- Re: different defaults in batchArne Vajhøj
       |`* Re: different defaults in batchArne Vajhøj
       | `- Re: different defaults in batchArne Vajhøj
       `* Re: different defaults in batchgah4
        `* Re: different defaults in batchbill
         `- Re: different defaults in batchSimon Clubley

Pages:12
different defaults in batch

<ugsqdf$qt6p$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30637&group=comp.os.vms#30637

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: different defaults in batch
Date: Thu, 19 Oct 2023 22:58:54 -0400
Organization: A noiseless patient Spider
Lines: 4
Message-ID: <ugsqdf$qt6p$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 20 Oct 2023 02:58:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84136aa36b1a841dfd54496eb540feda";
logging-data="881881"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pVi5unqCGtoi8ewyr3BrAGd0UmKZMogI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kdG7Xu2WV7QjF2agzk7Y0Qdj0wY=
Content-Language: en-US
 by: Arne Vajhøj - Fri, 20 Oct 2023 02:58 UTC

Am I the only one that find it weird that /LIST and /MAP are default
when building in batch?

Arne

Re: different defaults in batch

<acdc7308-572a-4ebc-a2b2-99dab69e533dn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30639&group=comp.os.vms#30639

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:4a0d:0:b0:41c:bedf:a558 with SMTP id x13-20020ac84a0d000000b0041cbedfa558mr10891qtq.11.1697781605416;
Thu, 19 Oct 2023 23:00:05 -0700 (PDT)
X-Received: by 2002:a05:6808:3989:b0:3af:8f64:1810 with SMTP id
gq9-20020a056808398900b003af8f641810mr1237443oib.2.1697781605252; Thu, 19 Oct
2023 23:00:05 -0700 (PDT)
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Thu, 19 Oct 2023 23:00:04 -0700 (PDT)
In-Reply-To: <ugsqdf$qt6p$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=76.76.60.100; posting-account=OjKUgAkAAAAXAqdVEKd-Gc8RltEUx3Xq
NNTP-Posting-Host: 76.76.60.100
References: <ugsqdf$qt6p$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <acdc7308-572a-4ebc-a2b2-99dab69e533dn@googlegroups.com>
Subject: Re: different defaults in batch
From: sms.anti...@gmail.com (Steven Schweda)
Injection-Date: Fri, 20 Oct 2023 06:00:05 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Steven Schweda - Fri, 20 Oct 2023 06:00 UTC

> Am I the only one [...]

You might be. I might not have done it that way, but it's documented
behavior, and not a recent change.

I dimly recall being surprised (many years ago) by the loss of free
disk space when I used SUBMIT instead of @ to build some non-trivial
project. Since then, I've tried to remember to put explicit /NOLIST and
/NOMAP options into my builders.

Re: different defaults in batch

<ugts10$12u2v$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30644&group=comp.os.vms#30644

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Fri, 20 Oct 2023 12:32:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <ugts10$12u2v$1@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 20 Oct 2023 12:32:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="dbda9b270955231c2a86edf0a7645e61";
logging-data="1144927"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HElOYbsreDMZXToZePkXvlUrW2Q1pitk="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:yE9JQ5Aji+Xa+jBOy0A1emxOb08=
 by: Simon Clubley - Fri, 20 Oct 2023 12:32 UTC

On 2023-10-19, Arne Vajhøj <arne@vajhoej.dk> wrote:
> Am I the only one that find it weird that /LIST and /MAP are default
> when building in batch?
>

Not really, given the batch/non-interactive processing model I understand
was common elsewhere when this was implemented.

I suspect the next stage would have been to print the listings from
the batch job for archiving.

As Steven points out, the default with the SUBMIT command is to print
the job output.

I do vaguely remember however having an impression of finding the
behaviour antiquated even when I first encountered it.

Simon.

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

Re: different defaults in batch

<ugtsak$12u2v$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30645&group=comp.os.vms#30645

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Fri, 20 Oct 2023 12:37:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <ugtsak$12u2v$2@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 20 Oct 2023 12:37:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="dbda9b270955231c2a86edf0a7645e61";
logging-data="1144927"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rp9kj0UHZixX9nROrh/8SoMy0B9sA37E="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:KGSQjgDG6K7XqSeSIglf9b9o9H8=
 by: Simon Clubley - Fri, 20 Oct 2023 12:37 UTC

On 2023-10-20, Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
> On 2023-10-19, Arne Vajhøj <arne@vajhoej.dk> wrote:
>> Am I the only one that find it weird that /LIST and /MAP are default
>> when building in batch?
>>
>
> Not really, given the batch/non-interactive processing model I understand
> was common elsewhere when this was implemented.
>
> I suspect the next stage would have been to print the listings from
> the batch job for archiving.
>
> As Steven points out, the default with the SUBMIT command is to print
> the job output.
>

Sorry, Steven didn't say that. He was just talking about the compilers.
However, the fact SUBMIT prints the job output by default speaks to the
culture at the time these compiler options were being implemented.

> I do vaguely remember however having an impression of finding the
> behaviour antiquated even when I first encountered it.
>

Simon.

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

Re: different defaults in batch

<ugtvdo$13ime$3@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30651&group=comp.os.vms#30651

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!nntp.comgw.net!paganini.bofh.team!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Fri, 20 Oct 2023 09:30:31 -0400
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <ugtvdo$13ime$3@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me>
<acdc7308-572a-4ebc-a2b2-99dab69e533dn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 20 Oct 2023 13:30:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84136aa36b1a841dfd54496eb540feda";
logging-data="1166030"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/N5zzFW5N+IdGwvKv1rdH1wvlyiFgVAqk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:AL/5JPhMRSWV3u7Kd+L7cqH5BDo=
In-Reply-To: <acdc7308-572a-4ebc-a2b2-99dab69e533dn@googlegroups.com>
Content-Language: en-US
 by: Arne Vajhøj - Fri, 20 Oct 2023 13:30 UTC

On 10/20/2023 2:00 AM, Steven Schweda wrote:
>> Am I the only one [...]
>
> You might be. I might not have done it that way, but it's documented
> behavior, and not a recent change.

I suspect that is has always been there like since VMS 1.0.

> I dimly recall being surprised (many years ago) by the loss of free
> disk space when I used SUBMIT instead of @ to build some non-trivial
> project. Since then, I've tried to remember to put explicit /NOLIST and
> /NOMAP options into my builders.

It is not difficult to work around.

But does it make sense to change behavior when changing from
interactive to batch?

And does this specific behavior change make sense? My expectations
would be that an interactive build can be early development and
errors requiring LIS or MAP could be present while a batch build
is when it is known to work and LIS and MAP are not needed.

But again - I could be wrong.

Arne

Re: different defaults in batch

<ugtviv$13ime$4@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30652&group=comp.os.vms#30652

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Fri, 20 Oct 2023 09:33:18 -0400
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <ugtviv$13ime$4@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 20 Oct 2023 13:33:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="84136aa36b1a841dfd54496eb540feda";
logging-data="1166030"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Si7eAsnA8IaEZtYHW/G+5jquR/hpmnTU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Gz6cDPBNBbolmBQZLRRsnC5fUJU=
Content-Language: en-US
In-Reply-To: <ugtsak$12u2v$2@dont-email.me>
 by: Arne Vajhøj - Fri, 20 Oct 2023 13:33 UTC

On 10/20/2023 8:37 AM, Simon Clubley wrote:
> On 2023-10-20, Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>> On 2023-10-19, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>> Am I the only one that find it weird that /LIST and /MAP are default
>>> when building in batch?
>>>
>>
>> Not really, given the batch/non-interactive processing model I understand
>> was common elsewhere when this was implemented.
>>
>> I suspect the next stage would have been to print the listings from
>> the batch job for archiving.
>>
>> As Steven points out, the default with the SUBMIT command is to print
>> the job output.
>
> Sorry, Steven didn't say that. He was just talking about the compilers.
> However, the fact SUBMIT prints the job output by default speaks to the
> culture at the time these compiler options were being implemented.

(we discussed that some months ago)

Yes. It is all old times.

And backwards compatibility is always a concern.

But some changes like making /NOPRINT default for SUBMIT
and keeping /NOLIST and /NOMAP default for batch seems
like not so bad breaking changes to me.

Arne

Re: different defaults in batch

<ugurj6$1akhd$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30661&group=comp.os.vms#30661

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Fri, 20 Oct 2023 17:32:20 -0400
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <ugurj6$1akhd$1@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 20 Oct 2023 21:31:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="863926d6420bafd6f0287bd84dbd4dc5";
logging-data="1397293"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/v92Z1JysXTq4CgOzDB+Bnd4oyBfwWX58="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:GnbAzj7B2RhsEKD2UX3S5vz2Hf0=
In-Reply-To: <ugtviv$13ime$4@dont-email.me>
 by: Dave Froble - Fri, 20 Oct 2023 21:32 UTC

On 10/20/2023 9:33 AM, Arne Vajhøj wrote:
> On 10/20/2023 8:37 AM, Simon Clubley wrote:
>> On 2023-10-20, Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
>> wrote:
>>> On 2023-10-19, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>>> Am I the only one that find it weird that /LIST and /MAP are default
>>>> when building in batch?
>>>>
>>>
>>> Not really, given the batch/non-interactive processing model I understand
>>> was common elsewhere when this was implemented.
>>>
>>> I suspect the next stage would have been to print the listings from
>>> the batch job for archiving.
>>>
>>> As Steven points out, the default with the SUBMIT command is to print
>>> the job output.
>>
>> Sorry, Steven didn't say that. He was just talking about the compilers.
>> However, the fact SUBMIT prints the job output by default speaks to the
>> culture at the time these compiler options were being implemented.
>
> (we discussed that some months ago)
>
> Yes. It is all old times.
>
> And backwards compatibility is always a concern.
>
> But some changes like making /NOPRINT default for SUBMIT
> and keeping /NOLIST and /NOMAP default for batch seems
> like not so bad breaking changes to me.
>
> Arne
>
>

This is actually a bit amusing ...

Ya all seem to think I'm sloppy for not declaring variables, but, then ya all
seem to accept defaults elsewhere, when specifying what you actually want isn't
much different than declaring variables.

:-)

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: different defaults in batch

<ugv2qg$1c379$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30664&group=comp.os.vms#30664

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Fri, 20 Oct 2023 19:34:40 -0400
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <ugv2qg$1c379$1@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 20 Oct 2023 23:34:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="518eb7deac174673bcc7b415bbcd595d";
logging-data="1445097"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qz2itaT9acNIwY21cXsR/dqFf91iEfCQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ndpXZcXjq3fU+MRNI8x9mCEIuFg=
Content-Language: en-US
In-Reply-To: <ugurj6$1akhd$1@dont-email.me>
 by: Arne Vajhøj - Fri, 20 Oct 2023 23:34 UTC

On 10/20/2023 5:32 PM, Dave Froble wrote:
> On 10/20/2023 9:33 AM, Arne Vajhøj wrote:
>> On 10/20/2023 8:37 AM, Simon Clubley wrote:
>>> On 2023-10-20, Simon Clubley
>>> <clubley@remove_me.eisner.decus.org-Earth.UFP>
>>> wrote:
>>>> As Steven points out, the default with the SUBMIT command is to print
>>>> the job output.
>>>
>>> Sorry, Steven didn't say that. He was just talking about the compilers.
>>> However, the fact SUBMIT prints the job output by default speaks to the
>>> culture at the time these compiler options were being implemented.
>>
>> (we discussed that some months ago)
>>
>> Yes. It is all old times.
>>
>> And backwards compatibility is always a concern.
>>
>> But some changes like making /NOPRINT default for SUBMIT
>> and keeping /NOLIST and /NOMAP default for batch seems
>> like not so bad breaking changes to me.
>
> This is actually a bit amusing ...
>
> Ya all seem to think I'm sloppy for not declaring variables, but, then
> ya all seem to accept defaults elsewhere, when specifying what you
> actually want isn't much different than declaring variables.
>
> :-)

:-)

Or maybe build scripts, web pages, ERP applications and
embedded controllers managing an airplanes rudders have
different requirements.

But note that even though type by suffix (Basic) and
prefix (Fortran) is totally out of fashion today, then
no explicit specification on type is very much in
fashion. The majority of code written today is in
languages with either dynamic typing or in languages
using type inference.

Arne

Re: different defaults in batch

<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30665&group=comp.os.vms#30665

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:11a3:b0:66d:13ac:275e with SMTP id u3-20020a05621411a300b0066d13ac275emr77031qvv.13.1697867120986;
Fri, 20 Oct 2023 22:45:20 -0700 (PDT)
X-Received: by 2002:a05:6830:1e8a:b0:6ce:37c0:aa7d with SMTP id
n10-20020a0568301e8a00b006ce37c0aa7dmr1001798otr.4.1697867120789; Fri, 20 Oct
2023 22:45:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Fri, 20 Oct 2023 22:45:20 -0700 (PDT)
In-Reply-To: <ugv2qg$1c379$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=75.37.192.241; posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 75.37.192.241
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
Subject: Re: different defaults in batch
From: gah...@u.washington.edu (gah4)
Injection-Date: Sat, 21 Oct 2023 05:45:20 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2429
 by: gah4 - Sat, 21 Oct 2023 05:45 UTC

On Friday, October 20, 2023 at 4:34:45 PM UTC-7, Arne Vajhøj wrote:

(snip)

> Or maybe build scripts, web pages, ERP applications and
> embedded controllers managing an airplanes rudders have
> different requirements.

Many Unix programs work differently when stdout is a terminal instead
of a file. That often makes sense. Also, many people are used to them
working that way, and know what to do about it.

Seems that many should also know how VMS BATCH works, and
know what to do about it.

> But note that even though type by suffix (Basic) and
> prefix (Fortran) is totally out of fashion today, then
> no explicit specification on type is very much in
> fashion. The majority of code written today is in
> languages with either dynamic typing or in languages
> using type inference.

While using default typing in Fortran is discourage, and
even though it used to be true in C, isn't any more, it does
seem that many like to use i, j, k, l, m, and n for the
first letter of integer variables in C and other languages,
following the Fortran convention of over 60 years ago.

Re: different defaults in batch

<kphverF13mfU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30667&group=comp.os.vms#30667

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 08:45:14 -0400
Lines: 49
Message-ID: <kphverF13mfU1@mid.individual.net>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net aQFWR9DSLVg2HEw9eq/XwAxqu0QfLOphkapiuobu+gptIZe57T
Cancel-Lock: sha1:Tw/cXhMULGAEuJue47WWcfA84H8= sha256:9Uj0ajnqeVmzm7V2kAJLZR0ZmwIHySrYvqRhgaKVbqg=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
 by: bill - Sat, 21 Oct 2023 12:45 UTC

On 10/21/2023 1:45 AM, gah4 wrote:
> On Friday, October 20, 2023 at 4:34:45 PM UTC-7, Arne Vajhøj wrote:
>
> (snip)
>
>> Or maybe build scripts, web pages, ERP applications and
>> embedded controllers managing an airplanes rudders have
>> different requirements.
>
> Many Unix programs work differently when stdout is a terminal instead
> of a file. That often makes sense. Also, many people are used to them
> working that way, and know what to do about it.
>
> Seems that many should also know how VMS BATCH works, and
> know what to do about it.
>
>> But note that even though type by suffix (Basic) and
>> prefix (Fortran) is totally out of fashion today, then
>> no explicit specification on type is very much in
>> fashion. The majority of code written today is in
>> languages with either dynamic typing or in languages
>> using type inference.
>
> While using default typing in Fortran is discourage and
And then there were those of us who ever believed in default
anything.

> even though it used to be true in C, isn't any more, it does

When did C ever have "default typing" like Fortran?

> seem that many like to use i, j, k, l, m, and n for the
> first letter of integer variables in C and other languages,
> following the Fortran convention of over 60 years ago.

I have also never seen this. Except for entries in the
obfuscated C contest the norm for C program, in my experience,
has always been to use meaningful names for variables and not
some old convention from a different language.

bill

>
>
>
>
>

Re: different defaults in batch

<uh0oog$1qb47$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30669&group=comp.os.vms#30669

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 10:55:12 -0400
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <uh0oog$1qb47$1@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<kphverF13mfU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 21 Oct 2023 14:55:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="518eb7deac174673bcc7b415bbcd595d";
logging-data="1911943"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+x+2NMS/1T7UoGeCieJMsoIMXsCN50vVk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:B8+k+uKtJxcNEvT14caPUo31F2I=
In-Reply-To: <kphverF13mfU1@mid.individual.net>
Content-Language: en-US
 by: Arne Vajhøj - Sat, 21 Oct 2023 14:55 UTC

On 10/21/2023 8:45 AM, bill wrote:
> On 10/21/2023 1:45 AM, gah4 wrote:
>> On Friday, October 20, 2023 at 4:34:45 PM UTC-7, Arne Vajhøj wrote:
>>> But note that even though type by suffix (Basic) and
>>> prefix (Fortran) is totally out of fashion today, then
>>> no explicit specification on type is very much in
>>> fashion. The majority of code written today is in
>>> languages with either dynamic typing or in languages
>>> using type inference.
>>
>> While using default typing in Fortran is discourage and
> And then there were those of us who ever believed in default
> anything.
>
>> even though it used to be true in C, isn't any more, it does
>
> When did C ever have "default typing" like Fortran?

I don't think C ever allowed undeclared variables
giving them a type.

C does default return type of functions to int. It is
horrible, but it does.

>
>> seem that many like to use i, j, k, l, m, and n for the
>> first letter of integer variables in C and other languages,
>> following the Fortran convention of over 60 years ago.
>
> I have also never seen this.  Except for entries in the
> obfuscated C contest the norm for C program, in my experience,
> has always been to use meaningful names for variables and not
> some old convention from a different language.

Hmmm.

Are you telling me that you have never seen i, j, ...
used as variable in a for loop in C?

Arne

Re: different defaults in batch

<uh0ovj$1qb47$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30670&group=comp.os.vms#30670

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 10:58:59 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uh0ovj$1qb47$2@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 21 Oct 2023 14:59:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="518eb7deac174673bcc7b415bbcd595d";
logging-data="1911943"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gpqNGb0Lbe32X0IJJvK7XSfw0ENKBkME="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:erYrKjyc88CbRILpBzOWfakoB60=
In-Reply-To: <e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
Content-Language: en-US
 by: Arne Vajhøj - Sat, 21 Oct 2023 14:58 UTC

On 10/21/2023 1:45 AM, gah4 wrote:
> Many Unix programs work differently when stdout is a terminal instead
> of a file. That often makes sense. Also, many people are used to them
> working that way, and know what to do about it.

If being a terminal activates some fancy color highlightning
then fine.

I still don't like changing behavior.

It is not that hard to add /NOLIST and /NOMAP but it
just irritates me.

> Seems that many should also know how VMS BATCH works, and
> know what to do about it.

Not easy to change anything.

https://xkcd.com/1172/

Arne

Re: different defaults in batch

<kpi9leF13meU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30671&group=comp.os.vms#30671

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 11:39:24 -0400
Lines: 50
Message-ID: <kpi9leF13meU1@mid.individual.net>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<kphverF13mfU1@mid.individual.net> <uh0oog$1qb47$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net E55F0viwFnwp83HPqrsxXgG7gUuI5cl6ZHkX46V6nKenTS3MAu
Cancel-Lock: sha1:koPtXqFj5uTAYeRyd6ExRkmK/18= sha256:ELickedTr1iQRRGtY7C/0pISxRyHO0N9QicLzpCDvTs=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <uh0oog$1qb47$1@dont-email.me>
 by: bill - Sat, 21 Oct 2023 15:39 UTC

On 10/21/2023 10:55 AM, Arne Vajhøj wrote:
> On 10/21/2023 8:45 AM, bill wrote:
>> On 10/21/2023 1:45 AM, gah4 wrote:
>>> On Friday, October 20, 2023 at 4:34:45 PM UTC-7, Arne Vajhøj wrote:
>>>> But note that even though type by suffix (Basic) and
>>>> prefix (Fortran) is totally out of fashion today, then
>>>> no explicit specification on type is very much in
>>>> fashion. The majority of code written today is in
>>>> languages with either dynamic typing or in languages
>>>> using type inference.
>>>
>>> While using default typing in Fortran is discourage and
>> And then there were those of us who ever believed in default
>> anything.
>>
>>> even though it used to be true in C, isn't any more, it does
>>
>> When did C ever have "default typing" like Fortran?
>
> I don't think C ever allowed undeclared variables
> giving them a type.
>
> C does default return type of functions to int. It is
> horrible, but it does.
>
>>
>>> seem that many like to use i, j, k, l, m, and n for the
>>> first letter of integer variables in C and other languages,
>>> following the Fortran convention of over 60 years ago.
>>
>> I have also never seen this.  Except for entries in the
>> obfuscated C contest the norm for C program, in my experience,
>> has always been to use meaningful names for variables and not
>> some old convention from a different language.
>
> Hmmm.
>
> Are you telling me that you have never seen i, j, ...
> used as variable in a for loop in C?
>

Probably, but if someone is going to use a single letter variable
for a loop index more likely would be a, b, x, y, z. But I'm sure
an i would show up more for it being the first letter of the word
index than any influence from Fortran. Can't say I have ever seen
j used.

bill

Re: different defaults in batch

<192ca02e-4ef0-4276-a596-f3b2283961c0n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30672&group=comp.os.vms#30672

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:44cb:0:b0:40f:e0dd:8050 with SMTP id b11-20020ac844cb000000b0040fe0dd8050mr116018qto.5.1697904131905;
Sat, 21 Oct 2023 09:02:11 -0700 (PDT)
X-Received: by 2002:a4a:304c:0:b0:573:540a:fe3b with SMTP id
z12-20020a4a304c000000b00573540afe3bmr1894169ooz.0.1697904131658; Sat, 21 Oct
2023 09:02:11 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Sat, 21 Oct 2023 09:02:11 -0700 (PDT)
In-Reply-To: <kpi9leF13meU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c6:2201:c401:6af3:e0f0:bd6c:1bac;
posting-account=7q_AmAoAAAB-_OKdNMKqm2-wLm5fUMWW
NNTP-Posting-Host: 2a00:23c6:2201:c401:6af3:e0f0:bd6c:1bac
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com> <kphverF13mfU1@mid.individual.net>
<uh0oog$1qb47$1@dont-email.me> <kpi9leF13meU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <192ca02e-4ef0-4276-a596-f3b2283961c0n@googlegroups.com>
Subject: Re: different defaults in batch
From: martinsw...@gmail.com (Martin Rushton)
Injection-Date: Sat, 21 Oct 2023 16:02:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Martin Rushton - Sat, 21 Oct 2023 16:02 UTC

On Saturday, October 21, 2023 at 4:40:02 PM UTC+1, bill wrote:
> On 10/21/2023 10:55 AM, Arne Vajhøj wrote:
> > On 10/21/2023 8:45 AM, bill wrote:
> >> On 10/21/2023 1:45 AM, gah4 wrote:
> >>> On Friday, October 20, 2023 at 4:34:45 PM UTC-7, Arne Vajhøj wrote:
> >>>> But note that even though type by suffix (Basic) and
> >>>> prefix (Fortran) is totally out of fashion today, then
> >>>> no explicit specification on type is very much in
> >>>> fashion. The majority of code written today is in
> >>>> languages with either dynamic typing or in languages
> >>>> using type inference.
> >>>
> >>> While using default typing in Fortran is discourage and
> >> And then there were those of us who ever believed in default
> >> anything.
> >>
> >>> even though it used to be true in C, isn't any more, it does
> >>
> >> When did C ever have "default typing" like Fortran?
> >
> > I don't think C ever allowed undeclared variables
> > giving them a type.
> >
> > C does default return type of functions to int. It is
> > horrible, but it does.
> >
> >>
> >>> seem that many like to use i, j, k, l, m, and n for the
> >>> first letter of integer variables in C and other languages,
> >>> following the Fortran convention of over 60 years ago.
> >>
> >> I have also never seen this. Except for entries in the
> >> obfuscated C contest the norm for C program, in my experience,
> >> has always been to use meaningful names for variables and not
> >> some old convention from a different language.
> >
> > Hmmm.
> >
> > Are you telling me that you have never seen i, j, ...
> > used as variable in a for loop in C?
> >
> Probably, but if someone is going to use a single letter variable
> for a loop index more likely would be a, b, x, y, z. But I'm sure
> an i would show up more for it being the first letter of the word
> index than any influence from Fortran. Can't say I have ever seen
> j used.
>
> bill

Well I've certainly seen i, j and k used as successive loop indices in FORTRAN, C and AWK. I think I've also seen them used in PERL but can't be 100% sure. I know such things used to drive the instructors mad on my COBOL course 40-odd years ago!

Martin

Re: different defaults in batch

<uh0t9t$1rda6$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30673&group=comp.os.vms#30673

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 12:12:44 -0400
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <uh0t9t$1rda6$1@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<kphverF13mfU1@mid.individual.net> <uh0oog$1qb47$1@dont-email.me>
<kpi9leF13meU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 21 Oct 2023 16:12:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="518eb7deac174673bcc7b415bbcd595d";
logging-data="1946950"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199eyjx5XSkz8nKIvKjVGS9Wad6baWFBN8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6t1jQKNwN5j6SoKvRlqhD8Fb+78=
In-Reply-To: <kpi9leF13meU1@mid.individual.net>
Content-Language: en-US
 by: Arne Vajhøj - Sat, 21 Oct 2023 16:12 UTC

On 10/21/2023 11:39 AM, bill wrote:
> On 10/21/2023 10:55 AM, Arne Vajhøj wrote:
>> On 10/21/2023 8:45 AM, bill wrote:
>>> On 10/21/2023 1:45 AM, gah4 wrote:
>>>> seem that many like to use i, j, k, l, m, and n for the
>>>> first letter of integer variables in C and other languages,
>>>> following the Fortran convention of over 60 years ago.
>>>
>>> I have also never seen this.  Except for entries in the
>>> obfuscated C contest the norm for C program, in my experience,
>>> has always been to use meaningful names for variables and not
>>> some old convention from a different language.
>>
>> Hmmm.
>>
>> Are you telling me that you have never seen i, j, ...
>> used as variable in a for loop in C?
>
> Probably, but if someone is going to use a single letter variable
> for a loop index more likely would be a, b, x, y, z.  But I'm sure
> an i would show up more for it being the first letter of the word
> index than any influence from Fortran.  Can't say I have ever seen
> j used.

My impression is that:

for(i = 0, ...
for(int i = 0, ...

outnumber:

for(a = 0, ...
for(int a = 0, ...

by a factor 1000.

:-)

Arne

Re: different defaults in batch

<uh0tpf$1rh3g$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30674&group=comp.os.vms#30674

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dav...@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 12:22:04 -0400
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <uh0tpf$1rh3g$1@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<uh0ovj$1qb47$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 21 Oct 2023 16:21:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c2d518d3bbc7bf4ac72ee87ab4fa0ceb";
logging-data="1950832"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IrHrrhs2xbFbDAmiBdfPZfgEkRF7Ihsg="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:4T29NZJn9Tz489lmVPJuZdTtbyY=
In-Reply-To: <uh0ovj$1qb47$2@dont-email.me>
 by: Dave Froble - Sat, 21 Oct 2023 16:22 UTC

On 10/21/2023 10:58 AM, Arne Vajhøj wrote:
> On 10/21/2023 1:45 AM, gah4 wrote:
>> Many Unix programs work differently when stdout is a terminal instead
>> of a file. That often makes sense. Also, many people are used to them
>> working that way, and know what to do about it.
>
> If being a terminal activates some fancy color highlightning
> then fine.
>
> I still don't like changing behavior.
>
> It is not that hard to add /NOLIST and /NOMAP but it
> just irritates me.

:-)

Just as declaring temp variables for such as loop counters and such irritates
me. We all have our personal crosses to bear.

I also have such as NOLOG, NOLIST, NOMAP, and such in all my build procedures.
If you want something, you got to specify it. Isn't that what programming is
all about?

I remember one request at a DECUS event. "I wish DCL would do what I want, not
what I typed." Amusing ...

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

Re: different defaults in batch

<uh12sn$1sjsj$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30675&group=comp.os.vms#30675

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 13:48:07 -0400
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <uh12sn$1sjsj$1@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<kphverF13mfU1@mid.individual.net> <uh0oog$1qb47$1@dont-email.me>
<kpi9leF13meU1@mid.individual.net> <uh0t9t$1rda6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 21 Oct 2023 17:48:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="518eb7deac174673bcc7b415bbcd595d";
logging-data="1986451"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18M1nwfVA/TotvAguh9P30vnU3R/hEeM4s="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ToHf04sqfYBX0jNCBqMfp/KWRi8=
Content-Language: en-US
In-Reply-To: <uh0t9t$1rda6$1@dont-email.me>
 by: Arne Vajhøj - Sat, 21 Oct 2023 17:48 UTC

On 10/21/2023 12:12 PM, Arne Vajhøj wrote:
> On 10/21/2023 11:39 AM, bill wrote:
>> On 10/21/2023 10:55 AM, Arne Vajhøj wrote:
>>> On 10/21/2023 8:45 AM, bill wrote:
>>>> On 10/21/2023 1:45 AM, gah4 wrote:
>>>>> seem that many like to use i, j, k, l, m, and n for the
>>>>> first letter of integer variables in C and other languages,
>>>>> following the Fortran convention of over 60 years ago.
>>>>
>>>> I have also never seen this.  Except for entries in the
>>>> obfuscated C contest the norm for C program, in my experience,
>>>> has always been to use meaningful names for variables and not
>>>> some old convention from a different language.
>>>
>>> Hmmm.
>>>
>>> Are you telling me that you have never seen i, j, ...
>>> used as variable in a for loop in C?
>>
>> Probably, but if someone is going to use a single letter variable
>> for a loop index more likely would be a, b, x, y, z.  But I'm sure
>> an i would show up more for it being the first letter of the word
>> index than any influence from Fortran.  Can't say I have ever seen
>> j used.
>
> My impression is that:
>
> for(i = 0, ...
> for(int i = 0, ...
>
> outnumber:
>
> for(a = 0, ...
> for(int a = 0, ...
>
> by a factor 1000.
>
> :-)

The gentlemen K & R also use i and j in the C book.

And the gentleman Stroustrup also use i in the C++ book.

Arne

Re: different defaults in batch

<uh1535$1t2h5$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30676&group=comp.os.vms#30676

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 14:25:41 -0400
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <uh1535$1t2h5$1@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<uh0ovj$1qb47$2@dont-email.me> <uh0tpf$1rh3g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 21 Oct 2023 18:25:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="518eb7deac174673bcc7b415bbcd595d";
logging-data="2001445"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ex1c+kBNFigcOuYvTcz4Sxblu53u85xw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:YTWcTYQ9FzWYZzis9lXWe9b1LHI=
Content-Language: en-US
In-Reply-To: <uh0tpf$1rh3g$1@dont-email.me>
 by: Arne Vajhøj - Sat, 21 Oct 2023 18:25 UTC

On 10/21/2023 12:22 PM, Dave Froble wrote:
> Just as declaring temp variables for such as loop counters and such
> irritates me.  We all have our personal crosses to bear.

Today that is typical handled via type inference.

Kotlin example:

fun main() {
for(i in 1..3) {
println("${i::class.simpleName} : ${i}")
}
for(c in 'a'..'c') {
println("${c::class.simpleName} : ${c}")
}
}

output:

Int : 1
Int : 2
Int : 3
Char : a
Char : b
Char : c

Arne

Re: different defaults in batch

<uh1551$1t2h4$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30677&group=comp.os.vms#30677

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 14:26:41 -0400
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <uh1551$1t2h4$1@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<uh0ovj$1qb47$2@dont-email.me> <uh0tpf$1rh3g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 21 Oct 2023 18:26:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="518eb7deac174673bcc7b415bbcd595d";
logging-data="2001444"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ig5sRtfiH0sjmUQOMe9Zc6m4yFXU4EL8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:lc9OpHHFG5cIGd1v3nQVM/G8A6c=
In-Reply-To: <uh0tpf$1rh3g$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Sat, 21 Oct 2023 18:26 UTC

On 10/21/2023 12:22 PM, Dave Froble wrote:
> Just as declaring temp variables for such as loop counters and such
> irritates me.  We all have our personal crosses to bear.

Today that is typical handled via type inference.

Kotlin example:

fun main() {
for(i in 1..3) {
println("${i::class.simpleName} : ${i}")
}
for(c in 'a'..'c') {
println("${c::class.simpleName} : ${c}")
}
}

output:

Int : 1
Int : 2
Int : 3
Char : a
Char : b
Char : c

Arne

Re: different defaults in batch

<uh1bgu$1un59$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30679&group=comp.os.vms#30679

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 16:15:26 -0400
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <uh1bgu$1un59$1@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<uh0ovj$1qb47$2@dont-email.me> <uh0tpf$1rh3g$1@dont-email.me>
<uh1551$1t2h4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 21 Oct 2023 20:15:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="518eb7deac174673bcc7b415bbcd595d";
logging-data="2055337"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kP6VP2Xms34WAA4oKSCS4+WOEcPCa3+k="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:spEqIc2yXs3FLHOZm5ltIlgIUgw=
In-Reply-To: <uh1551$1t2h4$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Sat, 21 Oct 2023 20:15 UTC

On 10/21/2023 2:26 PM, Arne Vajhøj wrote:
> On 10/21/2023 12:22 PM, Dave Froble wrote:
>> Just as declaring temp variables for such as loop counters and such
>> irritates me.  We all have our personal crosses to bear.
>
> Today that is typical handled via type inference.
>
> Kotlin example:
>
> fun main() {
>     for(i in 1..3) {
>         println("${i::class.simpleName} : ${i}")
>     }
>     for(c in 'a'..'c') {
>         println("${c::class.simpleName} : ${c}")
>     }
> }
>
> output:
>
> Int : 1
> Int : 2
> Int : 3
> Char : a
> Char : b
> Char : c

Sorry for the duplicate post.

And for the record - it is possible to specify type:

fun main() {
for(i: Int in 1..3) {
println("${i::class.simpleName} : ${i}")
}
for(c: Char in 'a'..'c') {
println("${c::class.simpleName} : ${c}")
}
}

But nobody does that.

Arne

Re: different defaults in batch

<uh1fiq$9hb$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30680&group=comp.os.vms#30680

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.80-218-16-84.dclient.hispeed.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 23:24:42 +0200
Organization: MGT Consulting
Message-ID: <uh1fiq$9hb$1@news.misty.com>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<kphverF13mfU1@mid.individual.net> <uh0oog$1qb47$1@dont-email.me>
<kpi9leF13meU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 21 Oct 2023 21:24:42 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="80-218-16-84.dclient.hispeed.ch:80.218.16.84";
logging-data="9771"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <kpi9leF13meU1@mid.individual.net>
 by: Johnny Billquist - Sat, 21 Oct 2023 21:24 UTC

On 2023-10-21 17:39, bill wrote:
> On 10/21/2023 10:55 AM, Arne Vajhøj wrote:
>> Are you telling me that you have never seen i, j, ...
>> used as variable in a for loop in C?
>>
>
> Probably, but if someone is going to use a single letter variable
> for a loop index more likely would be a, b, x, y, z.  But I'm sure
> an i would show up more for it being the first letter of the word
> index than any influence from Fortran.  Can't say I have ever seen
> j used.

i and j as loop variables probably beats all other letters combined.

If you haven't seen that, then I really wonder what code you have looked at.

Johnny

Re: different defaults in batch

<kpj4p4F13meU2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30682&group=comp.os.vms#30682

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 19:22:10 -0400
Lines: 28
Message-ID: <kpj4p4F13meU2@mid.individual.net>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<kphverF13mfU1@mid.individual.net> <uh0oog$1qb47$1@dont-email.me>
<kpi9leF13meU1@mid.individual.net> <uh1fiq$9hb$1@news.misty.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net UMGxscyRTCC/je7qil/0rgPJjEbfTQfHobq7wWDTiQ7C3tLUV5
Cancel-Lock: sha1:UlEwtb8IPHKi/0GWk6IOnuUbHGs= sha256:f4i+U/Ilo2h6Gb3WWFU+k/DdPTMTjVtqCcrfeP4fe6c=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <uh1fiq$9hb$1@news.misty.com>
 by: bill - Sat, 21 Oct 2023 23:22 UTC

On 10/21/2023 5:24 PM, Johnny Billquist wrote:
> On 2023-10-21 17:39, bill wrote:
>> On 10/21/2023 10:55 AM, Arne Vajhøj wrote:
>>> Are you telling me that you have never seen i, j, ...
>>> used as variable in a for loop in C?
>>>
>>
>> Probably, but if someone is going to use a single letter variable
>> for a loop index more likely would be a, b, x, y, z.  But I'm sure
>> an i would show up more for it being the first letter of the word
>> index than any influence from Fortran.  Can't say I have ever seen
>> j used.
>
> i and j as loop variables probably beats all other letters combined.
>
> If you haven't seen that, then I really wonder what code you have looked
> at.
>

My early days doing production programming (In COBOL, Fortran, Pascal, C
and a lot of different assemblers) was all done in an environment with
very strict programming standards. Probably explains a lot about my
style and why I don't have problems with things like over-runs and
bounds violations. :-)

bill

Re: different defaults in batch

<kpj5a8F13meU3@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30683&group=comp.os.vms#30683

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 19:31:18 -0400
Lines: 52
Message-ID: <kpj5a8F13meU3@mid.individual.net>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<kphverF13mfU1@mid.individual.net> <uh0oog$1qb47$1@dont-email.me>
<kpi9leF13meU1@mid.individual.net> <uh0t9t$1rda6$1@dont-email.me>
<uh12sn$1sjsj$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net GnQx5ZjYXmQWE6odGzM59w6BtjYdLIrGVlo3f+eOul1CVOv+cS
Cancel-Lock: sha1:nb1Qjg25Q7byElDj49W7Ld+gv0U= sha256:cr7kze3/cNZnoj+tX7clPHM0cIkTccw2F3TLYKmDehs=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <uh12sn$1sjsj$1@dont-email.me>
 by: bill - Sat, 21 Oct 2023 23:31 UTC

On 10/21/2023 1:48 PM, Arne Vajhøj wrote:
> On 10/21/2023 12:12 PM, Arne Vajhøj wrote:
>> On 10/21/2023 11:39 AM, bill wrote:
>>> On 10/21/2023 10:55 AM, Arne Vajhøj wrote:
>>>> On 10/21/2023 8:45 AM, bill wrote:
>>>>> On 10/21/2023 1:45 AM, gah4 wrote:
>>>>>> seem that many like to use i, j, k, l, m, and n for the
>>>>>> first letter of integer variables in C and other languages,
>>>>>> following the Fortran convention of over 60 years ago.
>>>>>
>>>>> I have also never seen this.  Except for entries in the
>>>>> obfuscated C contest the norm for C program, in my experience,
>>>>> has always been to use meaningful names for variables and not
>>>>> some old convention from a different language.
>>>>
>>>> Hmmm.
>>>>
>>>> Are you telling me that you have never seen i, j, ...
>>>> used as variable in a for loop in C?
>>>
>>> Probably, but if someone is going to use a single letter variable
>>> for a loop index more likely would be a, b, x, y, z.  But I'm sure
>>> an i would show up more for it being the first letter of the word
>>> index than any influence from Fortran.  Can't say I have ever seen
>>> j used.
>>
>> My impression is that:
>>
>> for(i = 0, ...
>> for(int i = 0, ...
>>
>> outnumber:
>>
>> for(a = 0, ...
>> for(int a = 0, ...
>>
>> by a factor 1000.
>>
>> :-)
>
> The gentlemen K & R also use i and j in the C book.
>
> And the gentleman Stroustrup also use i in the C++ book.

What can I say. The places where I worked frowned on (read
that as forbid) single letter variables for any use at any
time. They also frowned on the concept of IMPLICIT. Define
everything and explain it in comments and the documentation.

bill

Re: different defaults in batch

<uh1no7$21enc$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30684&group=comp.os.vms#30684

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 19:44:06 -0400
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <uh1no7$21enc$1@dont-email.me>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<kphverF13mfU1@mid.individual.net> <uh0oog$1qb47$1@dont-email.me>
<kpi9leF13meU1@mid.individual.net> <uh1fiq$9hb$1@news.misty.com>
<kpj4p4F13meU2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 21 Oct 2023 23:44:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="49848ed4edef16d0e431c6721b7e3439";
logging-data="2145004"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tlBBTS5Gmtfd8VXK2HPo+WyTF6AA+rv0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:FYkMDp3Fj2SfOtAPeJTzS4BCO5k=
Content-Language: en-US
In-Reply-To: <kpj4p4F13meU2@mid.individual.net>
 by: Arne Vajhøj - Sat, 21 Oct 2023 23:44 UTC

On 10/21/2023 7:22 PM, bill wrote:
> On 10/21/2023 5:24 PM, Johnny Billquist wrote:
>> On 2023-10-21 17:39, bill wrote:
>>> On 10/21/2023 10:55 AM, Arne Vajhøj wrote:
>>>> Are you telling me that you have never seen i, j, ...
>>>> used as variable in a for loop in C?
>>>>
>>>
>>> Probably, but if someone is going to use a single letter variable
>>> for a loop index more likely would be a, b, x, y, z.  But I'm sure
>>> an i would show up more for it being the first letter of the word
>>> index than any influence from Fortran.  Can't say I have ever seen
>>> j used.
>>
>> i and j as loop variables probably beats all other letters combined.
>>
>> If you haven't seen that, then I really wonder what code you have
>> looked at.
>>
>
> My early days doing production programming (In COBOL, Fortran, Pascal, C
> and a lot of different assemblers) was all done in an environment with
> very strict programming standards.  Probably explains a lot about my
> style and why I don't have problems with things like over-runs and
> bounds violations.  :-)

C coding standards often allow or even encourage i and j.

A few random examples:

Linux kernel coding style:

https://www.kernel.org/doc/html/v4.10/process/coding-style.html

<quote>
LOCAL variable names should be short, and to the point. If you have some
random integer loop counter, it should probably be called i. Calling it
loop_counter is non-productive, if there is no chance of it being
mis-understood. Similarly, tmp can be just about any type of variable
that is used to hold a temporary value.
</quote>

FreeBSD style guide:

https://man.freebsd.org/cgi/man.cgi?style(9)

<quote>
A for loop may declare and initialize its counting variable.

for (int i = 0; i < 15; i++) {
</quote>

Gnome coding style:

https://developer.gnome.org/documentation/guidelines/programming/coding-style.html

<quote>
for (i = 0; i < num_elements; i++) {
</quote>

Arne

Re: different defaults in batch

<kpj6gdF13mfU2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30686&group=comp.os.vms#30686

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (bill)
Newsgroups: comp.os.vms
Subject: Re: different defaults in batch
Date: Sat, 21 Oct 2023 19:51:39 -0400
Lines: 72
Message-ID: <kpj6gdF13mfU2@mid.individual.net>
References: <ugsqdf$qt6p$1@dont-email.me> <ugts10$12u2v$1@dont-email.me>
<ugtsak$12u2v$2@dont-email.me> <ugtviv$13ime$4@dont-email.me>
<ugurj6$1akhd$1@dont-email.me> <ugv2qg$1c379$1@dont-email.me>
<e0a6b050-f02c-4942-9f61-e32a1c58990bn@googlegroups.com>
<kphverF13mfU1@mid.individual.net> <uh0oog$1qb47$1@dont-email.me>
<kpi9leF13meU1@mid.individual.net> <uh1fiq$9hb$1@news.misty.com>
<kpj4p4F13meU2@mid.individual.net> <uh1no7$21enc$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net PmBMpL37bSPnE50GpsofYAxHwE9x75SCTcGmpFlxGq/kn3Gxc4
Cancel-Lock: sha1:84TgXmO3pdqM2mN8g6mjnQk8bAk= sha256:OqrydVYM3WnUPAbGTztobbDdPSqQSCiL6c8GQGUu4xk=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <uh1no7$21enc$1@dont-email.me>
 by: bill - Sat, 21 Oct 2023 23:51 UTC

On 10/21/2023 7:44 PM, Arne Vajhøj wrote:
> On 10/21/2023 7:22 PM, bill wrote:
>> On 10/21/2023 5:24 PM, Johnny Billquist wrote:
>>> On 2023-10-21 17:39, bill wrote:
>>>> On 10/21/2023 10:55 AM, Arne Vajhøj wrote:
>>>>> Are you telling me that you have never seen i, j, ...
>>>>> used as variable in a for loop in C?
>>>>>
>>>>
>>>> Probably, but if someone is going to use a single letter variable
>>>> for a loop index more likely would be a, b, x, y, z.  But I'm sure
>>>> an i would show up more for it being the first letter of the word
>>>> index than any influence from Fortran.  Can't say I have ever seen
>>>> j used.
>>>
>>> i and j as loop variables probably beats all other letters combined.
>>>
>>> If you haven't seen that, then I really wonder what code you have
>>> looked at.
>>>
>>
>> My early days doing production programming (In COBOL, Fortran, Pascal, C
>> and a lot of different assemblers) was all done in an environment with
>> very strict programming standards.  Probably explains a lot about my
>> style and why I don't have problems with things like over-runs and
>> bounds violations.  :-)
>
> C coding standards often allow or even encourage i and j.
>
> A few random examples:
>
> Linux kernel coding style:
>
> https://www.kernel.org/doc/html/v4.10/process/coding-style.html
>
> <quote>
> LOCAL variable names should be short, and to the point. If you have some
> random integer loop counter, it should probably be called i. Calling it
> loop_counter is non-productive, if there is no chance of it being
> mis-understood. Similarly, tmp can be just about any type of variable
> that is used to hold a temporary value.
> </quote>
>
> FreeBSD style guide:
>
> https://man.freebsd.org/cgi/man.cgi?style(9)
>
> <quote>
> A for loop may declare and initialize its counting variable.
>
>            for (int    i = 0; i < 15; i++) {
> </quote>
>
> Gnome coding style:
>
> https://developer.gnome.org/documentation/guidelines/programming/coding-style.html
>
> <quote>
> for (i = 0; i < num_elements; i++) {
> </quote>
>

To each his own. I was taught with a much stricter standard
and I think it has done me well over my career. I will admit
that I have used i and variants like i1 and i2 for loops when
writing something quick and dirty that I will only be using
myself, but even then I know deep inside that I am doing
something basically wrong. :-)

bill

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor