2 ms·
Then use D ;) If you write a function in D with extern(C) like this: extern(C) int add(int a, int b) { return a + b; } it uses C calling conventions, so it
by qznc 14y ago
Then use D ;)
If you write a function in D with extern(C) like this:
extern(C) int add(int a, int b) { return a + b; }
it uses C calling conventions, so it can just be linked with C.
- Executor 14y agoI wish D was more popular. Only reason I'm not using is because it isn't a popular language. Same reason I'm not using Go :/.