Re: Misnomers in the COBOL standard
- From: "William Bub" <fathafluff@xxxxxxxxxxx>
- Date: Fri, 14 Jul 2006 00:54:05 GMT
(Jumping in from my usual lurking...)
I always liked it that COBOL nearly always worked left to right: MOVE VAR1
TO VAR2, ADD 1 to VAR3, etc.
I wish there were a COMPUTE syntax which worked the same way: COMPUTE VAR1 +
VAR2 GIVING VAR3 ???
(The last time I suggested it, everyone thought I was nuts!)
"Richard" <riplin@xxxxxxxxxxxx> wrote in message
news:1152829155.058170.233420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Robert Jones wrote:
My other bugbear is MULTIPLY a BY b, when in english, I would expect
the result in a rather than b.
The oginal staements in the language always had the last operand as the
result:
MOVE A TO B
ADD A TO B
SUBTRACT A FROM B
DIVIDE A INTO B
MULTIPLY A BY B
When GIVING was added that too put the result in the last operand,
ehich was now after the word GIVING.
DIVIDE A BY B would have broken this which is why it requires GIVING.
.
- Follow-Ups:
- Re: Misnomers in the COBOL standard
- From: James J. Gavan
- Re: Misnomers in the COBOL standard
- References:
- Misnomers in the COBOL standard
- From: Roger While
- Re: Misnomers in the COBOL standard
- From: Robert Jones
- Re: Misnomers in the COBOL standard
- From: Richard
- Misnomers in the COBOL standard
- Prev by Date: Re: Misnomers in the COBOL standard
- Next by Date: Re: change variables
- Previous by thread: Re: Misnomers in the COBOL standard
- Next by thread: Re: Misnomers in the COBOL standard
- Index(es):
Relevant Pages
|