FW: FW: [Cobolforgcc-devel] New code added
Status: Pre-Alpha
Brought to you by:
timjosling
From: William M. K. <wm...@ix...> - 2001-04-12 22:16:53
|
After sending Tim the attached, I went to the IBM LRM and it states the following (in BLUE as an IBM extension), "As an IBM extension, the EXIT statement does not need to appear in a sentence by itself. Any statements following the EXIT statement are executed; the EXIT statement is treated as the CONTINUE statement." -----Original Message----- From: William M. Klein Sent: Thursday, April 12, 2001 5:10 PM To: Tim Josling Subject: RE: FW: [Cobolforgcc-devel] New code added Tim, I just was recently reminded that both Micro Focus and IBM have a "documented" extension allowing EXIT to *not* be the only statement in a paragraph. I have *not* yet figured out what they do with it when it isn't, e.g. If A = "A" Display "This" Exit Else Display "That" End-If Display "Does this show up if A = 'A'?" . > -----Original Message----- > From: ti...@me... [mailto:ti...@me...]On Behalf Of Tim > Josling > Sent: Thursday, April 12, 2001 4:20 PM > To: William M. Klein > Subject: Re: FW: [Cobolforgcc-devel] New code added > > > Bill, > > True - continue is a no-op. But I have to put some code in to > warn if exit is not the only verb in a paragraph. IF is a > different story - by the way I will be interested in some test > cases for that but only using the compiler subset data types > > display pic x(n). > binary/comp-6/comp pic 9(n). > binary-char/short/long/double > plus 88 levels for these types > > Not including > - any special names things > - any class tests (NUMERIC etc). > > > Regards, > Tim Josling > > "William M. Klein" wrote: > > > > (not posted) <JOKE> > > I think that even *I* could almost do CONTINUE and EXIT (if > you mean the > > '85 Standard EXIT - and not the "new" EXIT > PARAGRAPH/SECTION/CYCLE stuff) > > |