Skip to content

Commit f31ccd7

Browse files
committed
use shorthand template syntax for eval
1 parent ce1f841 commit f31ccd7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spec/function.dd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,10 +2198,7 @@ $(H2 $(LNAME2 interpretation, Compile Time Function Execution (CTFE)))
21982198

21992199
$(SPEC_RUNNABLE_EXAMPLE_COMPILE
22002200
---
2201-
template eval( A... )
2202-
{
2203-
const typeof(A[0]) eval = A[0];
2204-
}
2201+
enum eval(Args...) = Args[0];
22052202

22062203
int square(int i)
22072204
{

0 commit comments

Comments
 (0)