On 2012-11-02 23:33, Rob T wrote:

That looks better. Not sure what the down side would be if any.

Unrelated to either form, I discovered it fails to compile when inside a
function with "auto" as the return type.

auto test()
{
    throw new Exception(  mixin(__FUNCTION) );
    return 0;
}

Error: forward reference to test

but this works

int test()
{
    throw new Exception(  mixin(__FUNCTION) );
    return 0;
}

So we're kinda sunk for inclusion in phobos unless this error can be
resolved.

I think it would be worth to but in Phobos anyway.

--
/Jacob Carlborg

Reply via email to