On 11/10/2010 10:52 AM, Andy Pugh wrote:
> On 10 November 2010 14:15, Mark Wendt<[email protected]>  wrote:
>
>
>> The compiler would see that first statement as a short circuit eval, and
>> always correctly evaluate it as your second form.
>>
> How about:
>
>   if(new_in&&  new_in -= start_in)
>
> ?
Oops, slight boo-boo on the last reply.  The second new_in would be 
assigned the value of the decremented start_in and would be evaluated as 
true if that value is greater than or equal to 1, and be evaluated as 
false if that value is 0.


Mark

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to