[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: Re: small patch
From: Bernd Schubert <bernd-schubert () gmx ! de>
Date: 2005-03-10 16:05:30
Message-ID: 200503101705.31122.bernd-schubert () gmx ! de
[Download RAW message or body]
On Thursday 10 March 2005 16:41, Paulo Moura Guedes wrote:
> On Thursday 10 March 2005 00:42, Bernd Schubert wrote:
> > The B. Stroustrup C++ book is in front of me, clearly stating that one
> > shouldn't uses macros in C++. Thinking about it and having programmed the
> > hole week in C, I believe its the most efficient way using this small
> > macro for it...
>
> How about:
> const char* PROFILEDIR = "kdevelop/profiles/";
> ;)
Well, correct me if I'm wrong, but won't this use memory while defining a
constant with #define won't use additional memory for an additional variable?
Of course, one could hope that the compiler will recognize and optimize it.
I certainly considered this, but this is really one of the points I don't
agree in with B. Stroustrup .
Cheers,
Bernd
--
Bernd Schubert
Physikalisch Chemisches Institut / Theoretische Chemie
Universität Heidelberg
INF 229
69120 Heidelberg
e-mail: bernd.schubert@pci.uni-heidelberg.de
_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic