GNU Scientific Library in D

Lars Kyllingstad public at kyllingen.net
Mon Jul 23 11:05:19 PDT 2007


Hello,

I would like to use the GNU Scientific Library, which is written in C, in D. While converting the header files to D modules, however I ran in to the following problem. In gsl_math.h, the following (crucially important) struct is defined:

struct gsl_function_struct 
{
  double (* function) (double x, void * params);
  void * params;
};

Note that the first member is named 'function', which unfortunately is a keyword in D. Any suggestions as to how I can work around this?

-Lars



More information about the Digitalmars-d mailing list