Source

pyd / examples / misc / dmd_sharedlibs / test2a.d

ariovistus bb2148d 







1
2
3
4
5
6
7
8
9
import std.stdio;

static this() {
    writeln("yawn. stretch.");
}

extern(C) int foo(int i) {
    return cast(int)("abc".dup.length) + i+1;
}