HP3000-L Archives

December 2003, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Erik Vistica <[log in to unmask]>
Reply To:
Erik Vistica <[log in to unmask]>
Date:
Tue, 2 Dec 2003 18:18:25 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
Walter Murray wrote:
> "Erik Vistica" wrote:
>
>>Hi Alan, the manual is correct. (The ANSI std basically says the same
>>thing as the manual). It looks like a bug in the compiler. I tried the
>>'Not allowed' example and it (incorrectly) compiled cleanly.
>
>
> [snip - description of HP COBOL II/iX accepting illegal use of an OCCURS
> clause in a data description entry that has a variable occurrence data item
> subordinate to it]
>
> Several questions come to mind:
>
> 1.  Does the compiler catch the error if you delete the GLOBAL clause?

No.

>
> 2.  Does the compiler produce a warning if you compile with $CONTROL
> STDWARN?

No.

>
> 3.  Does the compiler generate code that behaves reasonably?

Didn't run it, just compiled it. Some old SRs for similar things with
OCCURS claimed that it behaved OK.

>
> Walter (wishing I had access to a 3000 right now)
>

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2