Source

pyd / examples / misc / dmd_sharedlibs / test2b.d

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

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

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