public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: GCC's statement expression extension
@ 2000-08-03 14:32 Mike Stump
  2000-08-04  4:36 ` Jamie Lokier
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Stump @ 2000-08-03 14:32 UTC (permalink / raw)
  To: egcs; +Cc: gcc, mark, per

> Date: Thu, 3 Aug 2000 19:55:01 +0200
> From: Jamie Lokier <egcs@tantalophile.demon.co.uk>
> To: Mike Stump <mrs@windriver.com>

>   printf("%s", toupper((a+b).c_str()[0]));

Nope, not a problem.  You need one that takes and returns the same
char *, ah, answered my own question:

printf("%s", strcat((a+b).c_str(), ""));

But even in this case, strcat I bet isn't a macro, and even it it
were, I bet it would not abuse SEs, and even if it did, catting in ""
wouldn't make any sense.

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

end of thread, other threads:[~2000-08-05 10:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-03 14:32 GCC's statement expression extension Mike Stump
2000-08-04  4:36 ` Jamie Lokier
2000-08-04  9:04   ` Mark Mitchell
2000-08-04  9:26     ` Jamie Lokier
2000-08-04 13:19       ` Mark Mitchell
2000-08-04 19:42       ` Suggestion re " suckfish
2000-08-05 10:23         ` Mark Mitchell

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