On 6/30/2015 4:52 PM, Stefan Ram wrote:
>
r...@zedat.fu-berlin.de (Stefan Ram) writes:
>> Victor Bazarov <v.ba...@comcast.invalid> writes:
>>> I think the 'condition' requires an equal sign if it's a declaration of
>>> a variable.
>> The equals sign is not required. I quote 6.4p1:
>> condition:
>
> Of course, the English meaning of »condition« is something else.
> My course participants heavily protested when I
>
> #include <cstdio>
>
> int main() { if( ::std::puts( "hello, world" )){} }
>
> , and I just wanted to show that you can program without the
> semicolon »;«!
You can't guarantee that <cstdio> header does not contain a semicolon.