static try?

dennis luehring dl.soluz at gmx.net
Tue Nov 1 10:40:41 PDT 2011


Am 01.11.2011 17:46, schrieb Vladimir Panteleev:
> On Tue, 01 Nov 2011 18:33:56 +0200, dennis luehring<dl.soluz at gmx.net>
> wrote:
>
>>  introduces an compiletime scope - what would the following code mean?
>
> "debug", "version", "static if" don't create scopes.
>

i know - wrong name for the block between the try{...}

static try
{
------------------
    foo1();
    foo2();
    foo3();
------------------
}
catch
{
    bar();
}

im missing a description of what should happen if any of the foos fails 
to compile? is then the catch part used in compilation?

the idea is too near to the syntax of the exceptionhandling and have 
total different semantic... is that good?


More information about the Digitalmars-d mailing list