Re: Shouldn't the following code produce a warning?

2016-04-04 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, April 04, 2016 13:23:16 ric maicle via Digitalmars-d-learn wrote: > The values of the variables here can be determined during compilation. > Should there be some kind of warning like, unsigned integer may not be > compared to a value less than zero; or there shouldn't be since the >

Shouldn't the following code produce a warning?

2016-04-03 Thread ric maicle via Digitalmars-d-learn
The values of the variables here can be determined during compilation. Should there be some kind of warning like, unsigned integer may not be compared to a value less than zero; or there shouldn't be since the programmer should have known what he's doing? import std.stdio; void f1() {