bug? for(int i=0;i<1;) vs while(true)

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 17 12:57:39 PDT 2015


On Thursday, 17 September 2015 at 19:47:15 UTC, ddos wrote:
> yeah i tried for(;;) and it generates the same warning :)
> sure, here is the full example, it's not too long anyways
> ( the example doesn't make much sense tho because socket.accept 
> is blocking :P )
> http://pastebin.com/9K0wRRD6

Yeah, it is the return 0 at the bottom. You can actually just 
remove that and make main return void instead.  (That's perfectly 
legal in D, different than C)



More information about the Digitalmars-d-learn mailing list