[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Compiler modifications
From: |
Alain Lucari |
Subject: |
Re: [open-cobol-list] Compiler modifications |
Date: |
Tue, 6 Jun 2006 12:37:36 +0200 |
Hello Roger,
Le Tue, 06 Jun 2006 10:44:08 +0200
Roger While <address@hidden> a écrit:
I agree with what you ave writted, so i suppress,
unless
... (nip) ...
> This leaves (7)
> As stated before, the rules are quite clear.
> Fixed-format : Column 7 and that will/can NOT
> be changed. Here, columns 1 to 6 are ignored.
> Imagine we start looking for an asterisk in columns
> 1 to 6 - I have any number of ported apps that
> (mis)use columns 1 to 6 for commenting/highlighting
> code; INCLUDING an asterisk !
>
> Free-format : Column 1 and column 1 only.
NO : in free-format it is possible to put a comment
anywhere on a line with "*>" and
COMPUTE fld1 = fld2 *> Unit price
* fld3 *> quantity
END-COMPUTE
is perfectly correct.
> Consider these 3 lines (First character of each
> line starts in column 3) -
> COMPUTE fld1 = fld2
> * fld3
> END-COMPUTE.
> If we slide line 2 to the left so that the
> asterisk begins in column 1, it becomes
> a comment :-)
> (And still is valid code)
>
... (snip) ...
Best regards,
--
Alain Lucari (Eurlix)