This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [documentation patch] add detail to const and pure attributes
- From: Pedro Alves <palves at redhat dot com>
- To: Martin Sebor <msebor at gmail dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 27 Mar 2018 20:38:49 +0100
- Subject: Re: [documentation patch] add detail to const and pure attributes
- References: <25a9f265-84ca-ce49-caaf-1d785d9c5513@gmail.com>
On 03/27/2018 07:18 PM, Martin Sebor wrote:
> +Because a @code{pure} function can have no side-effects it does not
FWIW, I'd suggest rephrasing as:
Because a @code{pure} function cannot have side effects
because "can have no side-effects" can be read as
"is allowed to have no side effects", which gave me pause
when I read it the first time, and is the opposite of
what you mean.
Thanks,
Pedro Alves