Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-18 Thread Charles Mills
-Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Seymour J Metz Sent: Thursday, July 18, 2019 2:05 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) I hope that he meant 2**X

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-18 Thread Seymour J Metz
From: IBM Mainframe Discussion List on behalf of Clark Morris Sent: Thursday, July 18, 2019 4:37 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) [Default] On 18 Jul 2019 09:42:13 -0700, in bit.listserv.ibm

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-18 Thread Allan Staller
y 18, 2019 3:38 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) [Default] On 18 Jul 2019 09:42:13 -0700, in bit.listserv.ibm-main 000433f07816-dmarc-requ...@listserv.ua.edu (Paul Gilmartin) wrote: >On Tue, 16 Jul

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-18 Thread Clark Morris
[Default] On 18 Jul 2019 09:42:13 -0700, in bit.listserv.ibm-main 000433f07816-dmarc-requ...@listserv.ua.edu (Paul Gilmartin) wrote: >On Tue, 16 Jul 2019 19:22:51 +, Seymour J Metz wrote: >> >>The cardinal sin in language design is to make the compiler simpler at the >>expense of the

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-18 Thread Seymour J Metz
rame Discussion List on behalf of Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Thursday, July 18, 2019 1:28 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) On Thu, 18 Jul 2019 16:51:57 +, Seymour

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-18 Thread Seymour J Metz
From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Thursday, July 18, 2019 1:28 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Par

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-18 Thread Paul Gilmartin
On Thu, 18 Jul 2019 16:51:57 +, Seymour J Metz wrote: >OOREXX now allows the equivalent of expressions in tails: > > stem[tail expression] > What are those strange characters, "[" and "]"? What are their EBCDIC code points? >If X is a floating point (REAL) variable, why shouldn't x**(-1)

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-18 Thread Seymour J Metz
://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Bernd Oppolzer Sent: Wednesday, July 17, 2019 5:59 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) Am 17.07.2019 um 19:54

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-18 Thread Seymour J Metz
List on behalf of Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Thursday, July 18, 2019 12:41 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) On Tue, 16 Jul 2019 19:22:51 +, Seymour J Metz

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-18 Thread Paul Gilmartin
On Tue, 16 Jul 2019 19:22:51 +, Seymour J Metz wrote: > >The cardinal sin in language design is to make the compiler simpler at the >expense of the user. ... > I see a notable example of this in Rexx's not supporting expressions in compound symbol tails which some have justified as making

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-17 Thread Jim Carpenter
On 7/17/19 9:55 AM, David Crayford wrote: On 2019-07-16 4:44 AM, Tom Marchant wrote: Some C programmers are fond of if (7 == foo) rather than the more conventional if (foo == 7) because if one gets in the habit of doing so and then accidentally codes if (7 = foo) one gets a compile error

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-17 Thread Paul Gilmartin
On Wed, 17 Jul 2019 23:59:04 +0200, Bernd Oppolzer wrote: > >One program had a coding like this: > >    IF 9 < ZZ < 20 THEN DO; >      ... There's an argument here for strong typing, prohibiting comparing a boolean to a numeric without a cast. > ... Obviously this is not what the coder intended;

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-17 Thread Bernd Oppolzer
Am 17.07.2019 um 19:54 schrieb Paul Gilmartin: On Wed, 17 Jul 2019 12:22:35 -0400, Steve Smith wrote: The original sin was making "=" the assignment operator. I guess we can blame that on FORTRAN, and it must make mathematicians cringe still. I once (ca. 1967) needed to enlighten and

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-17 Thread Paul Gilmartin
On Wed, 17 Jul 2019 12:22:35 -0400, Steve Smith wrote: >The original sin was making "=" the assignment operator. I guess we can >blame that on FORTRAN, and it must make mathematicians cringe still. > I once (ca. 1967) needed to enlighten and disillusion a naive but persistent physics graduate

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-17 Thread John McKown
- > Shmuel (Seymour J.) Metz > http://mason.gmu.edu/~smetz3 > > > From: IBM Mainframe Discussion List on behalf > of John McKown > Sent: Wednesday, July 17, 2019 12:50 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Where put t

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-17 Thread Seymour J Metz
McKown Sent: Wednesday, July 17, 2019 12:50 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) On Wed, Jul 17, 2019 at 11:23 AM Steve Smith wrote: > The original sin was making "=" the assignment operator. I guess w

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-17 Thread John McKown
On Wed, Jul 17, 2019 at 11:23 AM Steve Smith wrote: > The original sin was making "=" the assignment operator. I guess we can > blame that on FORTRAN, and it must make mathematicians cringe still. > I haven't said anything, but I think you're correct. Of course, in the "bad old days" of punch

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-17 Thread Seymour J Metz
.ua.edu> Sent: Tuesday, July 16, 2019 4:16 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) On Tue, 16 Jul 2019 21:37:38 +0200, Bernd Oppolzer wrote: >Am 16.07.2019 um 21:22 schrieb Seymour J Metz: >>> Furthermore:

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-17 Thread Steve Smith
The original sin was making "=" the assignment operator. I guess we can blame that on FORTRAN, and it must make mathematicians cringe still. sas -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-17 Thread David Crayford
On 2019-07-16 4:44 AM, Tom Marchant wrote: Some C programmers are fond of if (7 == foo) rather than the more conventional if (foo == 7) because if one gets in the habit of doing so and then accidentally codes if (7 = foo) one gets a compile error rather than unexpected behavior. For those

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Edward Finnell
https://en.wikipedia.org/wiki/Pascal_MicroEngine In a message dated 7/16/2019 6:02:25 PM Central Standard Time, bernd.oppol...@t-online.de writes: and Pascal :-) Pascal makes the same difference between := (assignment) and = (comparison) So does C.

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Paul Gilmartin
On Tue, 16 Jul 2019 22:36:43 +0200, Bernd Oppolzer wrote: >>> >>> I added BREAK, CONTINUE, RETURN, MODULE, LOCAL and STATIC; >>> this was in the years from 2011 to 2016. No more need since. >>> >> I've done many of these as predefined quasi-identifiers, similar to Pascal's >> predefined standard

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Bernd Oppolzer
Am 16.07.2019 um 22:16 schrieb Paul Gilmartin: On Tue, 16 Jul 2019 21:37:38 +0200, Bernd Oppolzer wrote: Am 16.07.2019 um 21:22 schrieb Seymour J Metz: Furthermore: the more modern languages like Pascal, C and Java etc. forbid the use of reserved symbols as variable names. This may be

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Paul Gilmartin
On Tue, 16 Jul 2019 21:37:38 +0200, Bernd Oppolzer wrote: >Am 16.07.2019 um 21:22 schrieb Seymour J Metz: >>> Furthermore: the more modern languages like Pascal, C and Java etc. >>> forbid the use of reserved symbols as variable names. This may be >>> restrictive, but makes the compilers much

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Bernd Oppolzer
Am 16.07.2019 um 21:22 schrieb Seymour J Metz: Furthermore: the more modern languages like Pascal, C and Java etc. forbid the use of reserved symbols as variable names. This may be restrictive, but makes the compilers much much simpler. The cardinal sin in language design is to make the

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Seymour J Metz
u/~smetz3 From: IBM Mainframe Discussion List on behalf of Bernd Oppolzer Sent: Tuesday, July 16, 2019 3:06 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) Space is permitted almost everywhere in PL/1, not in the middle of id

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Bernd Oppolzer
Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) This double meaning of =, together with the absence of reserved words makes PL/1 parsing extremely hard. Consider for example IF (1) = (2); now what does that mean? Given a declaration DCL IF (25) BIN FIXED (31

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Seymour J Metz
uly 16, 2019 2:51 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) Am 16.07.2019 um 20:40 schrieb Seymour J Metz: >> Pascal makes the same difference between := (assignment) and = (comparison) > Pascal is a castr

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Bernd Oppolzer
Am 16.07.2019 um 20:40 schrieb Seymour J Metz: Pascal makes the same difference between := (assignment) and = (comparison) Pascal is a castrated version of Algol 60, Hmmm ... the only feature that Pascal lacks IMO is call-by-name, but this is something not easy to understand (and explain) to

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Seymour J Metz
List on behalf of > Tom Marchant <000a2a8c2020-dmarc-requ...@listserv.ua.edu> > Sent: Monday, July 15, 2019 4:44 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND > Parameter) > > On Mon, 15 Jul 2019 13:3

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Seymour J Metz
. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Bernd Oppolzer Sent: Tuesday, July 16, 2019 2:22 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Bernd Oppolzer
tserv.ua.edu> Sent: Monday, July 15, 2019 4:44 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) On Mon, 15 Jul 2019 13:30:51 -0700, Charles Mills wrote: Some C programmers are fond of if (7 == foo) rather than the more c

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Bernd Oppolzer
This double meaning of =, together with the absence of reserved words makes PL/1 parsing extremely hard. Consider for example IF (1) = (2); now what does that mean? Given a declaration DCL IF (25) BIN FIXED (31); that is, if IF is an array of integers, the "IF" statement above is a valid

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-16 Thread Seymour J Metz
ur J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Tom Marchant <000a2a8c2020-dmarc-requ...@listserv.ua.edu> Sent: Monday, July 15, 2019 4:44 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional consta

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-15 Thread Charles Mills
Of Tom Marchant Sent: Monday, July 15, 2019 1:44 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter) On Mon, 15 Jul 2019 13:30:51 -0700, Charles Mills wrote: >Some C programmers are fond of if (7 == foo) rather than the m

Re: Where put the notional constant in a condition (Was RE: JCL COND Parameter)

2019-07-15 Thread Tom Marchant
On Mon, 15 Jul 2019 13:30:51 -0700, Charles Mills wrote: >Some C programmers are fond of if (7 == foo) rather than the more conventional >if (foo == 7) because if one gets in the habit of doing so and then >accidentally codes if (7 = foo) one gets a compile error rather than >unexpected