Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changeset 1378

Show
Ignore:
Timestamp:
12/14/09 01:43:13 (15 years ago)
Author:
walter
Message:

bugzilla 3584 DeclDef? rule is missing entries

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docsrc/cpp0x.dd

    r1245 r1378  
    100100$(SECTION3 $(LNAME2 move-semantics, Extending Move Semantics To *this (Revision 2)), 
    101101 
    102102    $(P $(LINK2 $(NDOCS)2007/n2439.htm, N2439): TBD 
    103103    ) 
    104104 
    105105) 
    106106 
    107107$(SECTION3 $(LNAME2 static-assert, static_assert), 
    108108 
    109109    $(P $(LINK2 $(NDOCS)2004/n1720.html, N1720): 
    110     $(LINK2 version.html#staticassert, static assert) is 
     110    $(LINK2 version.html#StaticAssert, static assert) is 
    111111    part of D. 
    112112    ) 
    113113 
    114114) 
    115115 
    116116$(SECTION3 $(LNAME2 template-aliases, Template aliases for C++), 
    117117 
    118118    $(P $(LINK2 $(NDOCS)2007/n2258.pdf, N2258): 
    119119    Both $(LINK2 template.html, templates and template instantiations) 
    120120    can be $(LINK2 declaration.html#alias, aliased): 
  • trunk/docsrc/module.dd

    r932 r1378  
    1818    $(I ClassDeclaration) 
    1919    $(I InterfaceDeclaration) 
    2020    $(I AggregateDeclaration) 
    2121    $(I Declaration) 
    2222    $(I Constructor) 
    2323    $(I Destructor) 
    2424    $(I Invariant) 
    2525    $(I UnitTest) 
    2626    $(I StaticConstructor) 
    2727    $(I StaticDestructor) 
    28     $(LINK2 version.html#DebugSpecification, $(I DebugSpecification)) 
    29     $(LINK2 version.html#VersionSpecification, $(I VersionSpecification)) 
     28    $(LINK2 version.html#ConditionalDeclaration, $(I ConditionalDeclaration)) 
     29    $(LINK2 version.html#StaticAssert, $(I StaticAssert)) 
     30    $(LINK2 template.html#TemplateDeclaration, $(I TemplateDeclaration)) 
     31    $(LINK2 template-mixin.html#TemplateMixin, $(I TemplateMixin)) 
    3032    $(GLINK MixinDeclaration) 
    3133    $(B ;) 
    3234) 
    3335 
    3436 
    3537    $(P Modules have a one-to-one correspondence with source files. 
    3638    The module name is the file name with the path and extension 
    3739    stripped off. 
    3840    ) 
    3941 
  • trunk/docsrc/statement.dd

    r1375 r1378  
    2222 
    2323$(GNAME NonEmptyOrScopeBlockStatement): 
    2424    $(GLINK NonEmptyStatement) 
    2525    $(GLINK ScopeBlockStatement) 
    2626 
    2727$(GNAME NonEmptyStatement): 
    2828    $(GLINK LabeledStatement) 
    2929    $(GLINK ExpressionStatement) 
    3030    $(GLINK DeclarationStatement) 
    3131    $(GLINK IfStatement) 
    32     $(LINK2 version.html, $(I ConditionalStatement)) 
    3332    $(GLINK WhileStatement) 
    3433    $(GLINK DoStatement) 
    3534    $(GLINK ForStatement) 
    3635    $(GLINK ForeachStatement) 
    3736    $(GLINK SwitchStatement) 
    3837$(V2      $(GLINK FinalSwitchStatement) 
    3938)    $(GLINK CaseStatement) 
    4039$(V2      $(GLINK CaseRangeStatement) 
    4140)    $(GLINK DefaultStatement) 
    4241    $(GLINK ContinueStatement) 
     
    4645    $(GLINK WithStatement) 
    4746    $(GLINK SynchronizedStatement) 
    4847    $(GLINK TryStatement) 
    4948    $(GLINK ScopeGuardStatement) 
    5049    $(GLINK ThrowStatement) 
    5150$(V1    $(GLINK VolatileStatement) 
    5251)    $(GLINK AsmStatement) 
    5352    $(GLINK PragmaStatement) 
    5453    $(GLINK MixinStatement) 
    5554$(V2      $(GLINK ForeachRangeStatement)) 
     55    $(LINK2 version.html#ConditionalStatement, $(I ConditionalStatement)) 
     56    $(LINK2 version.html#StaticAssert, $(I StaticAssert)) 
     57    $(LINK2 template-mixin.html#TemplateMixin, $(I TemplateMixin)) 
    5658) 
    5759 
    5860<h2>$(LNAME2 ScopeStatement, Scope Statements)</h2> 
    5961 
    6062$(GRAMMAR 
    6163$(I ScopeStatement): 
    6264    $(GLINK NonEmptyStatement) 
    6365    $(GLINK BlockStatement) 
    6466) 
    6567 
  • trunk/docsrc/template-comparison.dd

    r784 r1378  
    137137Foo&lt;double&gt; f = { 1.2, 3, 6.8 }; 
    138138) 
    139139) 
    140140    ) 
    141141 
    142142    $(TR 
    143143    $(TD Concepts) 
    144144$(V1 
    145145    $(TD No, but much the same effect can be achieved with 
    146146     $(LINK2 version.html#staticif, static if) and 
    147      $(LINK2 version.html#staticassert, static asserts)) 
     147     $(LINK2 version.html#StaticAssert, static asserts)) 
    148148) 
    149149$(V2 
    150150    $(TD Yes: $(LINK2 cpp0x.html#concepts, Constraints)) 
    151151) 
    152152    $(TD No) 
    153153    $(TD Yes: $(LINK2 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1849.pdf, Concepts for C++0x N1849)) 
    154154    ) 
    155155 
    156156 
    157157    $(TR 
  • trunk/docsrc/version.dd

    r1372 r1378  
    33$(SPEC_S Conditional Compilation, 
    44 
    55    $(P $(I Conditional compilation) is the process of selecting which 
    66    code to compile and which code to not compile. 
    77    (In C and C++, conditional compilation is done with the preprocessor 
    88    directives $(CODE #if) / $(CODE #else) / $(CODE #endif).) 
    99    ) 
    1010 
    1111$(GRAMMAR 
    1212$(GNAME ConditionalDeclaration): 
    13     $(I Condition) $(I CCDeclarationBlock) 
    14     $(I Condition) $(I CCDeclarationBlock) $(B else) $(I CCDeclarationBlock) 
    15     $(I Condition) $(B :) $(I Declarations) 
     13    $(GLINK Condition) $(I CCDeclarationBlock) 
     14    $(GLINK Condition) $(I CCDeclarationBlock) $(B else) $(I CCDeclarationBlock) 
     15    $(GLINK Condition) $(B :) $(I Declarations) 
    1616 
    1717$(GNAME CCDeclarationBlock): 
    18     $(I Declaration
     18    $(LINK2 declaration.html#Declaration, $(I Declaration)
    1919    $(B {) $(I Declarations) $(B }) 
    2020    $(B { }) 
    2121 
    2222$(GNAME Declarations): 
    23     $(I Declaration
    24     $(I Declaration) $(I Declarations) 
     23    $(LINK2 declaration.html#Declaration, $(I Declaration)
     24    $(LINK2 declaration.html#Declaration, $(I Declaration)) $(I Declarations) 
    2525 
    2626$(GNAME ConditionalStatement): 
    27     $(I Condition) $(I NoScopeNonEmptyStatement
    28     $(I Condition) $(I NoScopeNonEmptyStatement) $(B else) $(I NoScopeNonEmptyStatement
    29 ) 
    30  
    31     $(P If the $(I Condition) is satisfied, then the following 
     27    $(GLINK Condition) $(LINK2 statement.html#NoScopeNonEmptyStatement, $(I NoScopeNonEmptyStatement)
     28    $(GLINK Condition) $(LINK2 statement.html#NoScopeNonEmptyStatement, $(I NoScopeNonEmptyStatement)) $(B else) $(LINK2 statement.html#NoScopeNonEmptyStatement, $(I NoScopeNonEmptyStatement)
     29) 
     30 
     31    $(P If the $(GLINK Condition) is satisfied, then the following 
    3232    $(I CCDeclarationBlock) or $(I Statement) is compiled in. 
    3333    If it is not satisfied, the $(I CCDeclarationBlock) or $(I Statement) 
    3434    after the optional $(CODE else) is compiled in. 
    3535    ) 
    3636 
    3737    $(P Any $(I CCDeclarationBlock) or $(I Statement) that is not 
    3838    compiled in still must be syntactically correct. 
    3939    ) 
    4040 
    4141    $(P No new scope is introduced, even if the 
    4242    $(I CCDeclarationBlock) or $(I Statement) 
    4343    is enclosed by $(CODE { }). 
    4444    ) 
    4545 
    4646    $(P $(I ConditionalDeclaration)s and $(I ConditionalStatement)s 
    4747    can be nested. 
    4848    ) 
    4949 
    50     $(P The $(LINK2 #staticassert, $(I StaticAssert)) can be used 
     50    $(P The $(LINK2 #StaticAssert, $(I StaticAssert)) can be used 
    5151    to issue errors at compilation time for branches of the conditional 
    5252    compilation that are errors. 
    5353    ) 
    5454 
    5555    $(P $(I Condition) comes in the following forms: 
    5656    ) 
    5757 
    5858$(GRAMMAR 
    5959$(GNAME Condition): 
    6060    $(LINK2 #version, $(I VersionCondition)) 
     
    437437    ) 
    438438    $(LI For unsatisfied conditions, the conditionally compiled code 
    439439    need only be syntactically correct. It does not have to be 
    440440    semantically correct. 
    441441    ) 
    442442    $(LI It must be evaluatable at compile time. 
    443443    ) 
    444444    ) 
    445445 
    446446 
    447 <h2>$(LNAME2 static-assert, $(LNAME2 staticassert, Static Assert))</h2> 
     447<h2>$(LNAME2 static-assert, $(LNAME2 StaticAssert, Static Assert))</h2> 
    448448 
    449449$(GRAMMAR 
    450450$(GNAME StaticAssert): 
    451451    $(B static assert $(LPAREN)) $(ASSIGNEXPRESSION) $(B $(RPAREN);) 
    452452    $(B static assert $(LPAREN)) $(ASSIGNEXPRESSION) $(B ,) $(ASSIGNEXPRESSION) $(B $(RPAREN);) 
    453453) 
    454454 
    455455    $(P $(ASSIGNEXPRESSION) is evaluated at compile time, and converted 
    456456    to a boolean value. If the value is true, the static assert 
    457457    is ignored. If the value is false, an error diagnostic is issued