RivenTheMage:
> This is infinite loop:
>
> for (ubyte i=0; i<=255; i++)
> {
> ...
> }
>
> I guess it's a bug?
One way to scan all the ubytes with a for loop:
import std.stdio;
void main() {
for (ubyte i = 0; ; i++) {
write(i, " ");
if (i == 255)
break;
}
}
Bye,
bearophile