DMD 1.039 and 2.023 releases

Bill Baxter wbaxter at gmail.com
Wed Jan 7 20:35:26 PST 2009


On Thu, Jan 8, 2009 at 1:27 PM, Denis Koroskin <2korden at gmail.com> wrote:
> On Thu, 08 Jan 2009 07:22:53 +0300, BCS <ao at pathlink.com> 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


More information about the Digitalmars-d-announce mailing list