On Sat, 31 May 2014 18:56:17 -0400, Timon Gehr <timon.g...@gmx.ch> wrote:

On 05/30/2014 02:37 PM, Steven Schveighoffer wrote:


in which case

static if(cond) {
immutable:
}

int x;

should not create x as immutable if cond is true. The current
behavior is not consistent with attribute either.

Ugh, that is really bad. It shouldn't do that. Is that intentional?

enum cond=true;

static if(cond){
immutable:
}

int x;
static assert(is(typeof(x)==int));

What is the problem?

OK, so the original premise is not true? I was assuming deadalnix was saying x would be immutable.

-Steve
        • Re: Scott Mey... Dmitry Olshansky via Digitalmars-d-announce
          • Re: Scott... Brian Schott via Digitalmars-d-announce
            • Re: ... Brian Rogoff via Digitalmars-d-announce
          • Re: Scott... Steven Schveighoffer via Digitalmars-d-announce
            • Re: ... Dmitry Olshansky via Digitalmars-d-announce
              • ... Steven Schveighoffer via Digitalmars-d-announce
            • Re: ... deadalnix via Digitalmars-d-announce
              • ... Steven Schveighoffer via Digitalmars-d-announce
              • ... Timon Gehr via Digitalmars-d-announce
              • ... Steven Schveighoffer via Digitalmars-d-announce
              • ... Walter Bright via Digitalmars-d-announce
              • ... Steven Schveighoffer via Digitalmars-d-announce
          • Re: Scott... Walter Bright via Digitalmars-d-announce
            • Re: ... Steven Schveighoffer via Digitalmars-d-announce
            • Re: ... Dmitry Olshansky via Digitalmars-d-announce
              • ... Walter Bright via Digitalmars-d-announce
  • Re: Scott Meyers' DConf 20... Jonathan M Davis via Digitalmars-d-announce
  • Re: Scott Meyers' DConf 20... Jonathan M Davis via Digitalmars-d-announce
  • Re: Scott Meyers' DConf 20... Timon Gehr via Digitalmars-d-announce

Reply via email to