The current D language bindings were semi-automatically generated using 
htod by Werner. They support the D1 version of the language. This has
been fine until now, but with the advent of version 4.6 gdc now 
support D2 by default. The current D bindings won't work with gdc-4.6
both because of cmake issues (I can work round these) and also because
of language issues. gdc-4.6 does have a compatibility flag to enable
D1 language support, but this is still stricter than gdc-4.4 and 
the bindings don't compile out of the box. 

One other thing I noticed was that subsequent hand edits of the 
bindings (by me among others) had introduced code that worked
with gdc-4.4 but was rejected by gdc-4.6, even with D1 support
enabled. Maintaining the bindings in this non-automatic way is
a little tedious and tricky, especially for lesser used bindings
like D.

This first came to light testing out the new Debian packages. There
I (for now) force the gdc-4.4 compiler to be used (Debian provides
a gdc-v1 package for this). I think we need to think about the long
term plan here. I notice that swig has support for the D language
(both D1 and D2). I think this would probably be a good way to go
as we are already widely using swig and this makes management
of API updates much simpler. It might not be compatible

I know next to nothing about D other than what I've learnt trying
to get our bindings to work, so if anyone is willing to pick up this 
project to convert our D bindings to swig, then please step forward.
I can offer advice on using swig (as can Alan). Of course, if anyone 
thinks this is a bad idea then please also say so. In the absence of 
volunteers, I'll add it to my list of things to do, but this may be 
some time. 

Andrew



------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to