[Exceptional C++ Style] Item 33

Herb Sutter hsutter at microsoft.com
Sun Apr 10 05:09:04 EDT 2005


Greetings from Lillehammer,

Oh, it's definitely a more "fun" Item (I shoot for variety because I
think it probably helps to maintain interest and keep the books from
getting too dry). Still, it does use the fun to make people aware of
tokenization and the max munch rule, and how that affects the way the
compiler/language interprets the meaning of our code.

Programmers don't have to be compiler writers, but it can still be
useful to think like one sometimes for exercise, which builds our
understanding of our tools even though we may not directly accomplish
any production work in the process. After all, most of us here don't
work the land or work in physically demanding trades like many people
do, but it can still be useful to go to a gym for exercise, which builds
our strength even though we may not directly accomplish any meaningful
work (pushing barbells around is "work" in the physics sense, but not in
the economic sense and doesn't get included in the GNP, except maybe for
the gym fees :-) ).

Just an analogy. I admit it was for fun. See you all (or many of you) a
week from now, and enjoy the conference!

Herb


> -----Original Message-----
> From: effective-cpp-bounces at accu.org [mailto:effective-cpp-
> bounces at accu.org] On Behalf Of Kloss, Burkhard (IT)
> Sent: Saturday, April 09, 2005 4:16 PM
> To: effective-cpp at accu.org
> Subject: RE: [Exceptional C++ Style] Item 33
> 
> It is definitely an informational item, and really a pretty pointless
> one.  Perhaps useful as a party trick if you go to very odd parties -
or
> you're trying to get out of a really dull conversation ;)
> 
> > -----Original Message-----
> > From: effective-cpp-bounces at accu.org
> > [mailto:effective-cpp-bounces at accu.org] On Behalf Of Paul Grenyer
> > Sent: 08 April 2005 19:34
> > To: effective-cpp at accu.org
> > Subject: Re: [Exceptional C++ Style] Item 33
> >
> > Hi
> >
> > Thanks, Burkhard. Better late than never! ;-)
> >
> > This item is now up on the project site:
> > http://www.paulgrenyer.dyndns.org/cppstyle/items.php#item33
> >
> > This appears to be one of "FYI" type items. Does anyone have
> > any comments?
> >
> > There's only a few items to go, let's try and maintain some
> > momentum. :-)
> >
> > Regards
> > Paul
> >
> > Paul Grenyer
> > email: paul at paulgrenyer.co.uk
> > web: http://www.paulgrenyer.co.uk
> > Elephant: http://www.paulgrenyer.dyndns.org/elephant/
> >
> > Darling leave a light on for me, I'll be there before you
> > close the door To give you all the love that you need,
> > Darling leave a light on for me 'cause when the world takes
> > me away, You are still the air that I breathe
> >
> >
> >
> > ----- Original Message -----
> > From: "Kloss, Burkhard (IT)" <Burkhard.Kloss at morganstanley.com>
> > To: <effective-cpp at accu.org>
> > Sent: Friday, April 08, 2005 9:20 AM
> > Subject: [Exceptional C++ Style] Item 33
> >
> >
> > > With apologies for the long delay, here it is at last:
> > >
> > > "Operators, Operators Everywhere"
> > >
> > > JG Question:  What is the greatest number of plus signs (+) that
can
> > > appear consecutively, without intervening whitespace, in a valid
C++
> > > program.
> [ *** too many quoted lines.  automatically truncated *** ]
> 
> --------------------------------------------------------
> 
> NOTICE: If received in error, please destroy and notify sender.
Sender
> does not waive confidentiality or privilege, and use is prohibited.
> 
> 
> _______________________________________________
> Effective-cpp mailing list
> Effective-cpp at accu.org
> List: http://www.accu.org/mailman/listinfo/effective-cpp
> Project: http://www.paulgrenyer.dyndns.org/cppstyle/




More information about the Effective-cpp mailing list