On Thursday, 6 March 2014 at 17:24:07 UTC, Timon Gehr wrote:
On 03/05/2014 11:41 PM, deadalnix wrote:
On Wednesday, 5 March 2014 at 21:54:52 UTC, Timon Gehr wrote:
...
static if needs exactly the same thing, currently the
following compiles:
static if(is(int A)){}
A b; // meh
It's pretty easy to solve: Just give static if/static foreach
it's own
scope, but by default forward symbol insertions to the
enclosing
scope. Symbols introduced by the construct itself are inserted
directly into its scope and not forwarded.
I don't think this is the right solution. Spewing error is
better
than overly complicated design.
I don't understand what your point is. Care to elaborate?
Forget about it. I think you aright. I misunderstood your
proposal.