I have come across a function pointer in C that I am attempting to convert, and am not sure what the current interpretation is:

```
\\ The C Code:
void (*(*xDlSym)(sqlite3_vfs*,void*, const char *zSymbol))(void);
```

The best I can tell is that this is a function pointer that returns a function that returns void and the correct translation to D is:

```
alias void function(sqlite3_vfs*,void*, const char *zSymbol) ptr;
ptr* function() xDlSym;
```

I've never seen a construction like this before so my interpretation might be wrong!

Reply via email to