C++ guys hate static_if?

Jonathan M Davis jmdavisProg at gmx.com
Mon Mar 11 17:53:59 PDT 2013


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


More information about the Digitalmars-d mailing list