What is the common way of porting opaque types in C header files?

Gary Willoughby dev at nomad.so
Thu Dec 12 14:52:56 PST 2013


I have a lot of opaque types in C headers i'm porting to D. What 
is the best way to handle these? Would you just use void pointers?

In the below example Tcl_AsyncHandler_ is not defined anywhere.

C:
typedef struct Tcl_AsyncHandler_ *Tcl_AsyncHandler;

D:
alias void* Tcl_AsyncHandler;



More information about the Digitalmars-d-learn mailing list