Translation of C function pointer.
Yao G.
yao.gomez at spam.gmail.com
Wed Sep 15 14:05:24 PDT 2010
Hello gentlemen:
I'm trying to translate the newest SQLite C header to D, and I stumbled
unto this gem:
> void (*(*xDlSym)(sqlite3_vfs*,void*, const char *zSymbol))(void);
What's that? A function pointer that takes another function pointer as its
name? I'm stuck at this and I don't know how to convert it to a D function
pointer. Certainly, the inner pointer is easy:
> void (* function(sqlite3_vfs*,void*, const(char) *zSymbol) xDlSym)();
But what about the outer one? I am missing something?
Thanks in advance.
--
Yao G.
More information about the Digitalmars-d-learn
mailing list