This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Please improve wording of explanation of a Gfortran extension
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Cyril Magnin <cyrmag7 at gmail dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>
- Date: Fri, 23 Mar 2018 12:00:06 +0000
- Subject: Re: Please improve wording of explanation of a Gfortran extension
- References: <CAEf5V55Ha9scK7nL69_vPRV1fOZ33xnya-qVByy6+hFMA4ArCA@mail.gmail.com>
CCing the fortran list.
On 23 March 2018 at 11:55, Cyril Magnin <cyrmag7@gmail.com> wrote:
> On the page
> https://gcc.gnu.org/onlinedocs/gfortran/Unary-operators.html#Unary-operators,
> we find the following statement:
>
> 6.1.11 Unary operators
>>
>> As an extension, GNU Fortran allows unary plus and unary minus operators
>> to appear as the second operand of binary arithmetic operators without the
>> need for parenthesis.
>>
>> X = Y * -Z
>>
>>
>> The meaning is quite clear, but the wording can be improved. An "operator
> appears as the second operand" ? Perhaps this could say, "...unary plus or
> minus operators to be applied to the second operand of.." or "unary plus or
> minus operators to be prefixed to the second operand of ...".
Or "allows the result of unary plus and unary minus operators to appear ..."