A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
5
Task/Introspection/D/introspection-1.d
Normal file
5
Task/Introspection/D/introspection-1.d
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import std.compiler;
|
||||
static if (version_major < 2 || version_minor > 7) {
|
||||
// this prevents further compilation
|
||||
static assert (false, "I can't cope with this compiler version");
|
||||
}
|
||||
10
Task/Introspection/D/introspection-2.d
Normal file
10
Task/Introspection/D/introspection-2.d
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
version(D_Version2) {
|
||||
|
||||
static if( __traits(compiles,abs(bloop)) ) {
|
||||
|
||||
typeof(abs(bloop)) computeAbsBloop() {
|
||||
return abs(bloop);
|
||||
}
|
||||
|
||||
}
|
||||
} else static assert(0, "Requires D version 2");
|
||||
5
Task/Introspection/D/introspection-3.d
Normal file
5
Task/Introspection/D/introspection-3.d
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
static if ( is(typeof(abs(bloop))) ) {
|
||||
typeof(abs(bloop)) computeAbsBloop() {
|
||||
return abs(bloop);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue