Mercurial > projects > dstress
annotate run/template_04.d @ 374:f87ba6507260
added missing meta-data
author | thomask |
---|---|
date | Thu, 31 Mar 2005 09:01:33 +0000 |
parents | a33ad7189d21 |
children | b8c0195059d9 |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
0 | 4 |
5 // @author@ Nick <Nick_member@pathlink.com> | |
6 // @date@ 2004-08-05 | |
140 | 7 // @uri@ news:cetp3r$1rrc$1@digitaldaemon.com |
0 | 8 |
374 | 9 module dstress.run.template_04; |
10 | |
0 | 11 template Bar(Y){ |
12 void Bar(Y param){ | |
13 } | |
14 } | |
15 | |
16 template Foo(alias X){ | |
17 alias Bar!(typeof(X)) Foo; | |
18 } | |
19 | |
20 void unused(){ | |
21 float f = 2.1f; | |
22 Bar!(typeof(f))(f); | |
23 } | |
24 | |
25 int main(){ | |
26 float f = 1.2f; | |
27 mixin Foo!(f); | |
28 Foo(f); | |
29 return 0; | |
30 } |