[chuck-users] for loop, empty condition, crash (ver 1.2.1.3)
Szilveszter Tóth
silvestre.toth at gmail.com
Fri Oct 23 04:07:20 EDT 2009
Hi fellow chucKers,
My example prog crashes if I leave the condition part of the for() loop
empty (no error message, just crash):
for (0 => int i; ; i++) {
<<<i>>>;
if (i == 100) {
break;
}
}
In C, it is legal, but whatever, I'd like to see an error message
instead of a program crash :).
Not so urgent, I can fix it adding a "true" keyword like this:
for (0 => int i; true; i++) {
<<<i>>>;
if (i == 100) {
break;
}
}
Regards,
Szilveszter aka Hillaby
More information about the chuck-users
mailing list