bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-GnuCOBOL] [Bugs] Redefining a redefinition and misleading error


From: Martin Ward
Subject: Re: [Bug-GnuCOBOL] [Bugs] Redefining a redefinition and misleading error message
Date: Tue, 3 Jul 2018 21:24:21 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 03/07/2018 20:05, J Leslie Turriff wrote:
> On 2018-07-02 12:42:27 Martin Ward wrote:
>> I don't know if redefining a redefine is allowed in standard COBOL:
>> but the second message is definitely incorrect. FOO and BAR
>> are both 725 bytes long.
> 
>       Jus out of curiosity? what happens if  you code
> |     03 BAR-DEF-1 REDEFINES FOO.
> instead of 
> |     03  BAR-DEF-1 REDEFINES BAR.
>       AFAIR, redefining the original used to be the requirement.

Redefining the original works with no errors.

The IBM COBOL compiler documentation explicitly allows
a redefinition of a redefine.

-- 
                        Martin

Dr Martin Ward | Email: address@hidden | http://www.gkc.org.uk
G.K.Chesterton site: http://www.gkc.org.uk/gkc | Erdos number: 4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]