On Thu, 29 May 2014 21:15:21 -0400, deadalnix <deadal...@gmail.com> wrote:

On Thursday, 29 May 2014 at 19:06:15 UTC, Steven Schveighoffer
wrote:
Static if is certainly NOT an attribute, it doesn't make any sense.

Well... it sorta does. static if does not introduce a new scope, even with {}, and this only happens with attributes.

-Steve

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?

-Steve
      • Re: Scott Meyers'... Walter Bright via Digitalmars-d-announce
        • Re: Scott Mey... Brian Schott via Digitalmars-d-announce
        • 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

Reply via email to