Errors in TDPL

bearophile bearophileHUGS at lycos.com
Wed Jun 23 16:10:14 PDT 2010


Alix Pexton:
> In some ways I think it was a mistake in to reuse while in the first 
> place, but that was a decision that was made a loong time before D...

Pascal-like languages use repeat-until, but I prefer the C do-while because the condition in repeat-until is the opposite of the one you use in a while loop, and every time I use repeat-until I have to remember what's the correct stopping condition to write.

Bye,
bearophile


More information about the Digitalmars-d mailing list