This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC's statement expression extension
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: GCC's statement expression extension
- From: Kamil Iskra <kamil at wins dot uva dot nl>
- Date: Sat, 5 Aug 2000 19:32:56 +0200 (CEST)
- cc: gcc at gcc dot gnu dot org
On Fri, 4 Aug 2000, Mark Mitchell wrote:
> I'll fix the typo. I don't find the example unclear -- but I wrote
> it.
>
> If you like, please write some additional explanatory text, and I will
> be happy to incorporate it.
Having thought about it again, I came to a conclussion that there is
nothing more to explain about the example once you put "int" in front of
"a". Now it's clear that "b" in the inline function simply doesn't have
any significance.
Still, I think that "b" should simply be eliminated. A one-liner example
with nonrelevant code in it strikes me as odd. YMMV. It's a minor issue
anyway.
For refence, here's what I suggest:
--- extend.texi.orig Sat Aug 5 19:13:21 2000
+++ extend.texi Sat Aug 5 19:25:27 2000
@@ -203,7 +203,7 @@ handled. For example:
does not work the same way as:
@example
-inline int foo(int a) @{ int b = a; return b + 3; @}
+inline int foo(int a) @{ return a + 3; @}
@end example
@noindent
--
/ Kamil Iskra kamil@wins.uva.nl \
| Section Computational Science, Faculty FNWI, Universiteit van Amsterdam |
| tel. +31 20 525 75 35 fax. +31 20 525 74 90 |
\ Kruislaan 403 room F.202 1098 SJ Amsterdam (NL) /