Hi,The snippet below will produce an "infinite loop" because obviously "ubyte u" will overflow after 255:
import std.stdio; void main(){ ubyte u = 250; for(;u<256;++u){ writeln(u); } } Question: Is there a way (Flag) to prevent this? Matheus.
matheus via Digitalmars-d-learn Sun, 04 Aug 2019 11:16:01 -0700
Hi,The snippet below will produce an "infinite loop" because obviously "ubyte u" will overflow after 255:
import std.stdio; void main(){ ubyte u = 250; for(;u<256;++u){ writeln(u); } } Question: Is there a way (Flag) to prevent this? Matheus.