The problem with the value that is returned from the condition in `static if`. Bug or feature?
Dennis Ritchie via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jun 7 04:53:08 PDT 2015
On Sunday, 7 June 2015 at 11:33:56 UTC, Marc Schütz wrote:
> Not true:
>
> immutable y = 1;
> enum x = &y;
>
> You can even do pointer arithmetics:
>
> auto foo() {
> auto x = [1,2,3,4];
> auto y = &x[1];
> return y[2];
> }
> pragma(msg, foo());
Then I do not see any problems hindering satisfy my report :)
More information about the Digitalmars-d-learn
mailing list