// main.d
import std.stdio;
import cee;
void main() {
auto ci = cInt();
auto cl = cLong();
auto cll = cLongLong();
writefln("[%s] %s", typeof(ci).stringof, ci);
writefln("[%s] %s", typeof(cl).stringof, cl);
writefln("[%s] %s", typeof(cll).stringof, cll);
}
// cee.c
int cInt() {
return 1;
}
long cLong() {
return (long) 2;
}
long long cLongLong() {
return (long long) 3;
}
# rdmd main.d
[int] 1
[int] 2
[long] 3
It literally just works.