Re: Fascinating Interview with Steve Jobs [non-mainframe] - now Gary Kildall

2023-04-02 Thread Tom Brennan
I actually always liked C, maybe because its original simplicity reminded me of Assembler. I mean, what other language can you goof up a length value or pointer and overwrite a bunch of other data areas by mistake? Oh yeah, Assembler! On 4/2/2023 9:29 PM, Clem Clarke wrote: In my mind, Gary

Re: ASM call by value

2023-04-02 Thread Frank Swarbrick
Comments inline (reply) below (without leading >; I don't seem to have that feature available). From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <042bfe9c879d-dmarc-requ...@listserv.ua.edu> Sent: Sunday, April 2, 2023 5:32 PM To:

Re: Fascinating Interview with Steve Jobs [non-mainframe] - now Gary Kildall

2023-04-02 Thread Clem Clarke
In my mind, Gary Kildall was a genius. Not only for his operating systems, but he also had PL/I running on PCs when everyone else said it was impossible. Now, we are stuck with "C". Also, Kildall had a GUI called GEM out years before Windows. Unfortunately, the same man that effectively

Re: ASM call by value

2023-04-02 Thread Paul Gilmartin
On Mon, 3 Apr 2023 01:48:31 +0200, Bernd Oppolzer wrote: >> >C only supports call by value; >if you want other things like call by reference or "call by content", as >defined by COBOL, >you have do simulate them by passing pointers by value explicitly >(and in the case of call by content, by

Re: Subject: Re: Currency format suggestions, please?

2023-04-02 Thread Wayne Bickerdike
Growing up in the 50's people could only fantasise about billions and millions. These numbers just seemed far far from reality. A good friend of mine boasted to me that his Dad was "a thousandaire". I was impressed. On Sun, Apr 2, 2023 at 10:35 PM Rupert Reynolds wrote: > Oh yes. Only slightly

Re: ASM call by value

2023-04-02 Thread Bernd Oppolzer
Now I'll try an answer to the other question(s), see below ... Am 03.04.2023 um 01:32 schrieb Paul Gilmartin: Are the external semantics (not examining the generated assembly) of "pass by content" any different from "pass by value"? How? maybe not It would seem more efficient for the

Re: ASM call by value

2023-04-02 Thread Bernd Oppolzer
Am 03.04.2023 um 00:37 schrieb Frank Swarbrick: Something to note, and it's not supported by C as far as I am aware, is neither of these are "pass by content". Pass by content is "pass address of a copy of the field". So a copy is done, as with fun2, but the parameter list pointed to by R1

Re: ASM call by value

2023-04-02 Thread Bernd Oppolzer
I will try to answer one of your questions, see below ... kind regards / Bernd Am 03.04.2023 um 01:32 schrieb Paul Gilmartin: On Sun, 2 Apr 2023 22:37:53 +, Frank Swarbrick wrote: I'm just going to put this out there... Dingus has an online test C compiler, which outputs the generated

Re: ASM call by value

2023-04-02 Thread Paul Gilmartin
On Sun, 2 Apr 2023 22:37:53 +, Frank Swarbrick wrote: >I'm just going to put this out there... Dingus has an online test C compiler, >which outputs the generated assembler. You can find it at >http://www.dignus.com/dcc/compileit.html. > Thanks. >I ran the following program through it. >

Re: ASM call by value

2023-04-02 Thread Frank Swarbrick
I'm just going to put this out there... Dingus has an online test C compiler, which outputs the generated assembler. You can find it at http://www.dignus.com/dcc/compileit.html. I ran the following program through it. #include typedef struct tester { char c; int i;

Calling SVC 51

2023-04-02 Thread Joseph Reichman
Whenever I get an error I try to dump the relevant data. SDUMP gives the whole 9 yards a lot of which I don't need in addition I like looking at the data ISPF Browse rather than IPCS SNAPX you must supply a DCB SDUMPX you enter a DCB only if you want (optionally) The DCB info for SNAPX is

Re: RTM/SDWA question

2023-04-02 Thread Joseph Reichman
I understand. I just re-read the comments next to SDWASRSV while SDWASRGSV Is regs at time of error for ESTAE for an FRR it SDWASR00 anyway I use a register update block thanks -Original Message- From: IBM Mainframe Discussion List On Behalf Of Peter Relson Sent: Sunday, April 2,

Re: CASE constructs

2023-04-02 Thread Rupert Reynolds
I don't know enough COBOL to contribute much more on that score. But I can now recall some of the COBOL programmer's words, "ALTER GOTO is the only sensible support for structured programming" which sounds like an eccentric view, if not actually mad :-) He was clearly good at his job, though, and

Re: ASM call by value

2023-04-02 Thread Bernd Oppolzer
It just came to my mind that for C programmers I have to add the following remark: it is not easy to pass arrays (vectors) by value in C, in contrast to - for example - Pascal. Because in C the name of a vector is equivalent to the address of the element of its element zero, this means that,

Re: CASE constructs

2023-04-02 Thread Seymour J Metz
"people were using" is not the same as "the language only has". There are far too many people who treat software as static, and only use what they learned initially. I, OTOH, am OCD about what has changed in the software that I am using. It's amazing who many times someone tells me that, e.g.,

Re: ASM call by value

2023-04-02 Thread Bernd Oppolzer
Am 02.04.2023 um 16:29 schrieb Seymour J Metz: Regardless of the implementation, call by reference is about more than efficiency; sometimes a subroutine is required to alter one of its parameters, and call by value doesn't allow that. That's well known; most C textbooks tell that call by

Re: ASM call by value

2023-04-02 Thread Seymour J Metz
Regardless of the implementation, call by reference is about more than efficiency; sometimes a subroutine is required to alter one of its parameters, and call by value doesn't allow that. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From:

Re: RTM/SDWA question

2023-04-02 Thread Peter Relson
The registers in the SDWA related to RB or linkage stack entry are not time of error. There are many rules involved with when those registers are saved. If you want registers for retry, then you should save them in a work area that you can locate via the ESTAE parameter or the FRR parameter

Re: Subject: Re: Currency format suggestions, please?

2023-04-02 Thread Rupert Reynolds
Oh yes. Only slightly ambiguous when the speaker had alergies and a blocked nose :-) Roops On Sun, 2 Apr 2023, 11:18 Lennie Dymoke-Bradshaw, < 032fff1be9b4-dmarc-requ...@listserv.ua.edu> wrote: > We used to have the Milliard as well. > https://www.dictionary.com/browse/milliard > > Lennie >

Re: Subject: Re: Currency format suggestions, please?

2023-04-02 Thread Lennie Dymoke-Bradshaw
We used to have the Milliard as well. https://www.dictionary.com/browse/milliard Lennie -Original Message- From: IBM Mainframe Discussion List On Behalf Of Rupert Reynolds Sent: 02 April 2023 04:05 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Subject: Re: Currency format suggestions,

Re: ASM call by value

2023-04-02 Thread Bernd Oppolzer
Does this mean that, in the cases where the argument fits within the width of the parameter list, PL/X passes the actual value somehow? (which IMO means: the value goes into the parameter list). Or does it also in these cases only rely to the interface definition (and calls by reference)?