[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Fwd: Global Shortcuts
From: Alex Merry <huntedhacker () tiscali ! co ! uk>
Date: 2008-03-07 0:55:19
Message-ID: 200803070055.24534.huntedhacker () tiscali ! co ! uk
[Download RAW message or body]
On Thursday 06 March 2008 21:19:58 Michael Jansen wrote:
> On Thursday 06 March 2008 19:03:13 Alex Merry wrote:
> > Q_FOREACH is necessary for public headers because they have to compile
> > with the compile-time switch that disables the "foreach" alias.
>
> I can't remember what an alias is in c++. Seem to have missed that thing.
> Just checked. foreach is an preprocessor macro too. Sorry i prefer to have
> my macros uppercase. If you show me an developing style guide who says i
> have to use the foreach version i will question it's sense but adhere. Else
> i keep usi ng the uppercase version.
Well, that's just because it's a macro masquerading as a language construct.
It's meant to look and act like foreach in Java, for example. Of course, it d
oesn't exactly due to the limitations of the macro system, but it also doesn't
act like a "normal" macro - ie: like a constant or a function call.
That said, I don't think it's something to get worked up over. My personal vi
ew is that "foreach" is a lot more clear about it's purpose and how it works,
but you can also argue (as I guess you do) that "Q_FOREACH" makes its limitati
ons clearer.
> Then make it clearer. And kill the rule that forbids removing tabs from
> source s you don't touch If it's ok to change these nonsense.
I don't think there is such a rule, as long as style changes go in a separate
commit (so that it's easy to see what has changed in a given commit).
Anyhow, I've helped prolong this thread quite enough now...
Alex
--
KDE: http://www.kde.org
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic