[Vala] [vala] for loop

2010-06-25 Thread gerhard . gruber
Hello! I am using vala for some months now and first I want to say: great job! I like this language! But today I looked at some generated C-Code an when you have a simple for-loop in vala: int main() { int i; for (i = 0; i 10; i++) { stdout.printf(test %d\n, i); } return 0

Re: [Vala] [vala] for loop

2010-06-25 Thread Jürg Billeter
Hi, On Fri, 2010-06-25 at 10:27 +, gerhard.gru...@documatrix.com wrote: Why do you write a for loop in this way? I think there are some reasons, but I did not find them. But when it is necessary to write a while loop instead a for loop would it not be better, if the generated code looks