[Bf-committers] Style issue

Ed Halley ed at halley.cc
Fri Apr 14 21:30:46 CEST 2006



Martin Poirier wrote:
> Unless you can be 100% sure all compiler garranty (or
> turn off) short circuit evaluation, the execution of
> your expression is undefined.

Er, find a C or C++ compiler which does not properly handle && and
I'll show you a compiler which nobody uses for real software.  It
is a firm dictate of the language that && and !! fully evaluate the
left operand, before starting to evaluate the right.

-- 
[ e d @ h a l l e y . c c ]


More information about the Bf-committers mailing list