public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Please improve wording of explanation of a Gfortran extension
@ 2018-03-23 11:55 Cyril Magnin
  2018-03-23 12:00 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Cyril Magnin @ 2018-03-23 11:55 UTC (permalink / raw)
  To: gcc

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 ...".

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Please improve wording of explanation of a Gfortran extension
  2018-03-23 11:55 Please improve wording of explanation of a Gfortran extension Cyril Magnin
@ 2018-03-23 12:00 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2018-03-23 12:00 UTC (permalink / raw)
  To: Cyril Magnin; +Cc: gcc, fortran@gcc.gnu.org List

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 ..."

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-23 12:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-23 11:55 Please improve wording of explanation of a Gfortran extension Cyril Magnin
2018-03-23 12:00 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).