Skip to content

Commit

Permalink
Merge pull request #1144 from WalterBright/function-nav
Browse files Browse the repository at this point in the history
function.html: add simple navigation
  • Loading branch information
CyberShadow committed Oct 28, 2015
2 parents 06a977a + d44dde9 commit 8163557
Showing 1 changed file with 43 additions and 8 deletions.
51 changes: 43 additions & 8 deletions function.dd
Expand Up @@ -2,6 +2,41 @@ Ddoc

$(SPEC_S Functions,

$(P
$(RELATIVE_LINK2 contracts, Contracts)
$(RELATIVE_LINK2 function-return-values, Function Return Values)
$(RELATIVE_LINK2 function-declarations, Functions Without Bodies)
$(RELATIVE_LINK2 pure-functions, Pure Functions)
$(RELATIVE_LINK2 nothrow-functions, Nothrow Functions)
$(RELATIVE_LINK2 ref-functions, Ref Functions)
$(RELATIVE_LINK2 auto-functions, Auto Functions)
$(RELATIVE_LINK2 auto-ref-functions, Auto Ref Functions)
$(RELATIVE_LINK2 inout-functions, Inout Functions)
$(RELATIVE_LINK2 optional-parenthesis, Optional Parentheses)
$(RELATIVE_LINK2 property-functions, Property Functions)
$(RELATIVE_LINK2 virtual-functions, Virtual Functions)
$(RELATIVE_LINK2 function-inheritance, Function Inheritance and Overriding)
$(RELATIVE_LINK2 inline-functions, Inline Functions)
$(RELATIVE_LINK2 function-overloading, Function Overloading)
$(RELATIVE_LINK2 overload-sets, Overload Sets)
$(RELATIVE_LINK2 parameters, Function Parameters)
$(RELATIVE_LINK2 function-default-args, Function Default Arguments)
$(RELATIVE_LINK2 variadic, Variadic Functions)
$(RELATIVE_LINK2 variadicnested, Nested Functions)
$(RELATIVE_LINK2 closures, Delegates, Function Pointers, and Closures)
$(RELATIVE_LINK2 anonymous, Anonymous Functions and Anonymous Delegates)
$(RELATIVE_LINK2 main, $(D main()) Function)
$(RELATIVE_LINK2 function-templates, Function Templates)
$(RELATIVE_LINK2 interpretation, Compile Time Function Execution (CTFE))
$(RELATIVE_LINK2 string-mixins, String Mixins and Compile Time Function Execution)
$(RELATIVE_LINK2 function-safety, Function Safety)
$(RELATIVE_LINK2 safe-functions, Safe Functions)
$(RELATIVE_LINK2 trusted-functions, Trusted Functions)
$(RELATIVE_LINK2 system-functions, System Functions)
$(RELATIVE_LINK2 function-attribute-inference, Function Attribute Inference)
$(RELATIVE_LINK2 pseudo-member, Uniform Function Call Syntax (UFCS))
)

$(GRAMMAR
$(GNAME FuncDeclaration):
$(GLINK2 declaration, StorageClasses)$(OPT) $(GLINK2 declaration, BasicType) $(GLINK FuncDeclarator) $(GLINK FunctionBody)
Expand Down Expand Up @@ -90,7 +125,7 @@ $(GNAME BodyStatement):
$(D body) $(GLINK2 statement, BlockStatement)
)

$(H4 Contracts)
$(H4 $(LNAME2 contracts, Contracts))

$(P The $(D in) and $(D out) blocks of a function declaration specify
the pre- and post-conditions of the function. They are used in $(LINK2
Expand All @@ -99,13 +134,13 @@ $(H4 Contracts)
and/or return values.
)

$(H4 Function Return Values)
$(H4 $(LNAME2 function-return-values, Function Return Values))

$(P Function return values are considered to be rvalues.
This means they cannot be passed by reference to other functions.
)

$(H4 Functions Without Bodies)
$(H4 $(LNAME2 function-declarations, Functions Without Bodies))

$(P Functions without bodies:)

Expand Down Expand Up @@ -818,7 +853,7 @@ void main()
------


$(H4 Inline Functions)
$(H4 $(LNAME2 inline-functions, Inline Functions))

$(P There is no inline keyword. The compiler makes the decision whether to
inline a function or not, analogously to the register keyword no
Expand Down Expand Up @@ -1075,7 +1110,7 @@ $(CONSOLE
$(P A $(D lazy) parameter of type $(D void) can accept an argument
of any type.)

$(H4 Function Default Arguments)
$(H4 $(LNAME2 function-default-args, Function Default Arguments))

$(P Function parameter declarations can have default values:)

Expand Down Expand Up @@ -1861,12 +1896,12 @@ void test()
into a common syntax and be interchangeable with each other.
)

$(H4 Anonymous Functions and Anonymous Delegates)
$(H4 $(LNAME2 anonymous, Anonymous Functions and Anonymous Delegates))

$(P See $(GLINK2 expression, FunctionLiteral)s.
)

$(H3 $(D main()) Function)
$(H3 $(LNAME2 main, $(D main()) Function))

$(P For console programs, $(D main()) serves as the entry point.
It gets called after all the module initializers are run, and
Expand Down Expand Up @@ -2075,7 +2110,7 @@ void foo()
$(P These are the same kinds of scenarios where different
optimization settings affect the results.)

$(H4 String Mixins and Compile Time Function Execution)
$(H4 $(LNAME2 string-mixins, String Mixins and Compile Time Function Execution))

$(P Any functions that execute at compile time must also
be executable at run time. The compile time evaluation of
Expand Down

0 comments on commit 8163557

Please sign in to comment.