gnucobol-users
[Top][All Lists]
Advanced

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

[open-cobol-list] Re: Question About Functions


From: Roger While
Subject: [open-cobol-list] Re: Question About Functions
Date: Tue May 10 08:46:21 2005

> FUNCTION MAX( A   B - C        - 3 )

Indisputedly two.
What about this :
FUNCTION MAX( A   (B - C)        - 3 )

You think 3? Wrong, still 2.

BUT :
FUNCTION MAX( A   B - C        -3 )
Note no space between the "-" and the "3".
That's 3 parameters. The beauties of the unary minus.

Roger





reply via email to

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