C++ guys hate static_if?

simendsjo simendsjo at gmail.com
Sat Mar 9 02:06:18 PST 2013


On Saturday, 9 March 2013 at 09:52:55 UTC, deadalnix wrote:
> On Saturday, 9 March 2013 at 09:41:42 UTC, simendsjo wrote:
>> On Saturday, 9 March 2013 at 09:12:30 UTC, Jouko Koski wrote:
>>> "Walter Bright"  wrote:
>>>
>>>> Many of the criticisms in the paper are addressed by our 
>>>> positive experience with static if in D.
>>>
>>> Sometimes I do find it confusing that { does or does not 
>>> introduce a new scope in a very similar-looking contexts.
>>
>> Is there more constructs than static if that doesn't create a 
>> scope?
>
> version, debug, release, 
> const/immutable/inout/static/whatever{} .

I see const++ as well as property as qualifiers and don't assume 
a new scope.
Didn't think of version++ though :)


More information about the Digitalmars-d mailing list