annotate addon/template_10_meta.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents 9603ea1557fc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
223
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
1 /*
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
2 Thor - D Metaprogramming Library
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
3 version zero
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
4 (c) 2004-2005 Aleksey Bobnev
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
5
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
6 Public Domain
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
7
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
8 Thanks go to:
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
9 Andrei Alexandrescu - for admirable book "Modern C++ Design" and Loki library
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
10 Andy Friesen - for apropos library, which actually pioneered meta-programming in D
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
11 */
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
12 /+module Thor.meta;+/
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
13 module addon.template_10_meta;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
14
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
15 class NullT
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
16 {
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
17 }
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
18
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
19 template Equal(T0,T1)
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
20 {
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
21 const bool Equal = false;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
22 }
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
23
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
24 template Equal(T0,T1 : T0)
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
25 {
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
26 const bool Equal = true;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
27 }
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
28
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
29 template SelectType(bool c, T0,T1)
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
30 {
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
31 alias T0 SelectType;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
32 }
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
33
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
34 template SelectType(bool c : false, T0,T1)
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
35 {
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
36 alias T1 SelectType;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
37 }
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
38
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
39 template SelectAlias(bool c, alias T0,alias T1)
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
40 {
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
41 alias T0 SelectAlias;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
42 }
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
43
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
44 template SelectAlias(bool c : false, alias T0, alias T1)
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
45 {
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
46 alias T1 SelectAlias;
9603ea1557fc template specialization bug
thomask
parents:
diff changeset
47 }