Re: Overloaded logic operators

Frank Swarbrick <fswarbrick@gmail.com>
Thu, 27 Nov 2008 22:05:10 -0700

          From comp.compilers

Related articles
[8 earlier articles]
Re: Overloaded logic operators lkrupp@pssw.com (Louis Krupp) (2008-11-25)
Re: Overloaded logic operators mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2008-11-25)
Re: Overloaded logic operators m.helvensteijn@gmail.com (2008-11-25)
Re: Overloaded logic operators bc@freeuk.com (Bartc) (2008-11-25)
Re: Overloaded logic operators cdodd@acm.org (Chris Dodd) (2008-11-25)
Re: Overloaded logic operators torbenm@pc-003.diku.dk (2008-11-26)
Re: Overloaded logic operators fswarbrick@gmail.com (Frank Swarbrick) (2008-11-27)
Re: Overloaded logic operators dot@dotat.at (Tony Finch) (2008-12-01)
Re: Overloaded logic operators alexc@TheWorld.com (Alex Colvin) (2008-12-03)
Re: Overloaded logic operators haberg_20080406@math.su.se (Hans Aberg) (2008-12-04)
| List of all articles for this month |

From: Frank Swarbrick <fswarbrick@gmail.com>
Newsgroups: comp.compilers
Date: Thu, 27 Nov 2008 22:05:10 -0700
Organization: Compilers Central
References: 08-11-110 08-11-114 08-11-123
Keywords: Cobol
Posted-Date: 28 Nov 2008 12:22:21 EST

Louis Krupp wrote:
> <snip>
>> [The A < B < C syntax has been part of Cobol for many decades. It seems
>> to work fine there. -John]
>
> Are you sure that's in COBOL? It doesn't sound familiar, and I don't
> have a COBOL manual handy.
>
> Louis
> [Actually, it's in verbose Cobolese:
>
> IF B IS GREATER THAN A AND LESS THAN C ...
>
> or
>
> IF B > A AND < C ...
>
> -John]


Interesting. I've been a Cobol programmer for twelve years and I've
never seen this type of coding, much less used it. I just tried it,
though, and it does indeed work.


Learn something new every day...



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.