29-May-2014 23:06, Steven Schveighoffer пишет:
On Thu, 29 May 2014 14:11:27 -0400, Dmitry Olshansky
<dmitry.o...@gmail.com> wrote:

29-May-2014 04:58, Walter Bright пишет:
On 5/28/2014 5:35 PM, Brian Rogoff wrote:
Could you elaborate? Using some of the examples Brian gave, which ones
do you
think are are mathematically consistent/human inconsistent and which
the inverse?

Off the top of my head:

     static if (condition)
     else :

     ... declarations ...

All attributes apply to either:

1. the next statement or declaration
2. { ... }
3. : ...

That case is (3), as static if is set up as an attribute.


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.

Let it be just a declaration, as simple as that. Attributes affect other declarations in the scope, static if doesn't.


-Steve


--
Dmitry Olshansky
  • Re: Scott Meyers' DConf 20... Walter Bright via Digitalmars-d-announce
    • Re: Scott Meyers' DCo... Brian Rogoff via Digitalmars-d-announce
      • 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

Reply via email to