if (int x=..) but no while(int x=..) ?

Jarrett Billingsley kb3ctd2 at yahoo.com
Tue Mar 14 17:01:36 PST 2006


"Lionello Lunesu" <lio at remove.lunesu.com> wrote in message 
news:dv5vgr$2eh0$1 at digitaldaemon.com...
>I like the fact that we can do
>
> # if (int recvd = ts.receive(buffer)) {...}
>
> but is there any reason why this shouldn't apply to "while" also?
>
> # while (int recvd = ts.receive(buffer)) {...}

Vote. 





More information about the Digitalmars-d mailing list