readDate in KLocale

Jacek Stolarczyk jacek at
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 and but I want to post it
with KControl changes and properly tested.


Jacek Stolarczyk
jstolarz at
Coordinator of Polish translations of KDE

More information about the kde-core-devel mailing list