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

Changeset 1379

Show
Ignore:
Timestamp:
12/14/09 08:05:09 (15 years ago)
Author:
walter
Message:

bugzilla 3590 FunctionParameterList? rule is missing

Files:

Legend:

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

    r1373 r1379  
    783783    ) 
    784784 
    785785<h2>$(LNAME2 function-templates, Function Templates)</h2> 
    786786 
    787787    $(P If a template declares exactly one member, and that member is a function 
    788788    with the same name as the template: 
    789789    ) 
    790790 
    791791$(GRAMMAR 
    792792$(GNAME FunctionTemplateDeclaration): 
    793     $(I Type) $(I Identifier) $(B $(LPAREN)) $(I TemplateParameterList) $(B $(RPAREN)) $(B $(LPAREN)) $(I FunctionParameterList) $(B $(RPAREN)) $(I FunctionBody) 
     793    $(I Type) $(I Identifier) $(B $(LPAREN)) $(I TemplateParameterList) $(B $(RPAREN)) $(B $(LPAREN)) $(LINK2 declaration.html#ParameterList, $(I ParameterList)) $(B $(RPAREN)) $(I FunctionBody) 
    794794) 
    795795 
    796796    $(P A function template to compute the square of type $(I T) is: 
    797797    ) 
    798798------ 
    799799T $(B Square)(T)(T t) 
    800800{ 
    801801    return t * t; 
    802802} 
    803803------