Re: SAME AS ('02 Standard) Clause - and circulatiy
- From: "Rick Smith" <ricksmith@xxxxxxx>
- Date: Thu, 30 Aug 2007 10:41:19 -0400
In the game "Break the Standard", I came up with one
that appears to have anomalous behavior
1 C SAME AS A2 OF B.
1 B.
2 B1 PIC X.
2 B2 TYPE TO A.
1 A IS TYPEDEF.
2 A1 PIC X.
2 A2 PIC X.
SAME AS SR(1) permits qualified names; SR(7) permits
reference to an elementary item; and GR(1) covers
expansion using A2 OF B. However A2 OF B can not
be known until B2 of B is expanded and I find no
general rule requiring the expansion of B2 OF B to reveal
A2; nor any syntax rule limiting [SAME AS] data-name-1
to what is explicitly defined in source code.
Reverse the order of the level-number 1 items and expansion
of B2 OF B makes A2 OF B known before the expansion
of C.
In other words, as written, it appears to be a syntax error;
reversed, there appears to be no error.
.
- Follow-Ups:
- Re: SAME AS ('02 Standard) Clause - and circulatiy
- From: William M. Klein
- Re: SAME AS ('02 Standard) Clause - and circulatiy
- References:
- SAME AS ('02 Standard) Clause - and circulatiy
- From: William M. Klein
- SAME AS ('02 Standard) Clause - and circulatiy
- Prev by Date: Re: Compiling forward references
- Next by Date: Re: Problems compiling Micro Focus COBOL program as GNT
- Previous by thread: Re: SAME AS ('02 Standard) Clause - and circulatiy
- Next by thread: Re: SAME AS ('02 Standard) Clause - and circulatiy
- Index(es):
Relevant Pages
|