Skip to content

Commit

Permalink
fix Issue 1943 - Templates can't take function pointer parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jan 22, 2012
1 parent 1ed4783 commit 5b1b3d5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions template.dd
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,12 @@ $(V2
)

$(P Template value parameter types can be any type which can
be statically initialized at compile time, and the value argument
can be any expression which can be evaluated at compile time.
This includes integers, floating point types, and strings.
)
be statically initialized at compile time.
Template value arguments can be integer values, floating point values,
nulls, string values, array literals of template value arguments,
associative array literals of template value arguments,
or struct literals of template value arguments.
)

-----
template foo(string s) {
Expand Down

0 comments on commit 5b1b3d5

Please sign in to comment.