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

Re: gnubol: refmod again (fwd)



At 04:57 12/1/99 , J & C Migrations, Pty. wrote:
>Hi Mike!
>Both you and Randall seem to have missed this one:
>         (foo + 1) is a single index,
>         (foo + 0 +1) is two indexes roughly equivalent to (foo 1), and 
> the original
>         (foo + 0 + 1) is illegal, because as you can see from the format you
>quoted below, the [+/- integer-2 ] is not immediately followed by "...",
>only the entire group of index specification options has this repeatition
>indicator.

My read on COBOL-20XX:  If foo is a data-name, this is one subscript.  If 
foo is an index, this is two subscripts.  Isn't "+ 1" a valid expression?

There's been some debate on the J4 list about making parameters of 
functions parse the same as subscripts, but there may still be anomalous 
situations.  The optionality of the comma will be a burden on COBOL for the 
foreseeable future.  Programmers are advised to use parentheses whenever 
there is doubt.


--
This message was sent through the gnu-cobol mailing list.  To remove yourself
from this mailing list, send a message to majordomo@lusars.net with the
words "unsubscribe gnu-cobol" in the message body.  For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@lusars.net.