C++ guys hate static_if?

deadalnix deadalnix at gmail.com
Mon Mar 11 18:39:40 PDT 2013


On Tuesday, 12 March 2013 at 00:54:18 UTC, Jonathan M Davis wrote:
> On Monday, March 11, 2013 23:12:45 monarch_dodra wrote:
>> What *are* you talking about??? I can count 4 declarations in 2
>> static ifs? What is your definition of "declaration" and 
>> "scope".
>> 
>> There's a misunderstanding somewhere here. Can YOU show us an
>> example where there is a declaration that is scoped?
>
> Exactly. Every single line in those static ifs is a variable 
> declaration, and
> not a one of them creates a new scope, or the code wouldn't 
> compile. I don't
> understand how Timon can think that there are no declarations 
> in that code.
> There's clearly a fundamental misunderstanding and/or 
> miscommunication here.
>
> - Jonathan M Davis

Yes, you totally missed the point where he was saying in 
*condition*


More information about the Digitalmars-d mailing list