On Thu, Jan 8, 2009 at 1:27 PM, Denis Koroskin <[email protected]> wrote:
> On Thu, 08 Jan 2009 07:22:53 +0300, BCS <[email protected]> wrote:
>
>> Reply to Brad,
>>
>>> Restating in the form of a question... When would you _ever_ want
>>> {...} to not form a scope?
>>>
>>
>> static if(foo)
>> {
>>    int i;
>>    float x;
>> }
>>
>>
>
> Yeah, and version(foo) belongs here, too.
>

I think I said this before, but I do think it would be nice if there
was some kind of alternate non-scope block delimiter syntax in D.
When you have static ifs mixed with regular ifs and versions it starts
to be pretty difficult to see the flow of things.
Something like

static if (x) ::
     some stuff
::


--bb

Reply via email to