readDate in KLocale
Jacek Stolarczyk
jacek at mer.chemia.polsl.gliwice.pl
Wed Aug 7 10:43:23 BST 2002
On Wed, 7 Aug 2002, David Faure wrote:
[...]
> No need to switch to a while() (with the risk to forget initialization or j++ somewhen).
>
> Simply doing
> for (int j = 1; j < 8 && error; j++) {
> will abort the loop when a match is found.
> (Is this what this is about?)
Yes, exactly. It's just that the "for" loop with additional condition is a
little obscure. "while()" is better suited for breaking loop when a
condition is no longer met, after all.
I'll post a patch tomorrow, its first part (KLocale) is ready at
http://mer.chemia.polsl.gliwice.pl/kde/kloc_h.diff and
http://mer.chemia.polsl.gliwice.pl/kde/kloc_cpp.diff but I want to post it
with KControl changes and properly tested.
Regards,
Jacek Stolarczyk
--
jstolarz at kde.org
Coordinator of Polish translations of KDE
More information about the kde-core-devel
mailing list