Skip to content

Commit

Permalink
Merge pull request #1454 from BBasile/BBasile-inlinefunc
Browse files Browse the repository at this point in the history
Mention the pragma inline in function.dd
  • Loading branch information
schuetzm committed Sep 7, 2016
2 parents 5af0f72 + 2ef72b4 commit 04a64e0
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions spec/function.dd
Expand Up @@ -872,15 +872,13 @@ void main()

$(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
longer being relevant to a
compiler's decisions on enregistering variables.
(There is no register keyword either.))

$(P If a $(GLINK2 expression, FunctionLiteral) is immediately called,
its inlining would be enforced normally.)

$(P The compiler makes the decision whether to inline a function or not.
This decision may be controlled by $(LINK2 pragma.html#inline, `pragma(inline)`),
assuming that the compiler implements it, which is not mandatory.)

$(P Note that any $(GLINK2 expression, FunctionLiteral) should be inlined
when used in its declaration scope.
)

$(H3 $(LNAME2 function-overloading, Function Overloading))

Expand Down

0 comments on commit 04a64e0

Please sign in to comment.