How to convert C to D:
typedef const gchar* (*GModuleCheckInit) (GModule *module); typedef void (*GModuleUnload) (GModule *module);
Is it correct?
alias const gchar* function( GModule *module ) GModuleCheckInit; alias void function( GModule *module ) GModuleUnload;
Line 1 should be
alias const(gchar)* function( GModule *module ) GModuleCheckInit; // ^ ^
otherwise it constwill apply to all of this, making GModuleCheckInitit immutable.
const
GModuleCheckInit
Line 2 is correct.