Something like derelict but for D 2.x and Phobos?

Anders F Björklund afb at algonet.se
Mon Oct 29 03:47:44 PDT 2007


Bruno Medeiros wrote:

> First, you have some variables named "ref" in OpenGL which doesn't work 
> in D 1.x (unless you use the -v1 switch).
> Second, and more importantly, you're still using the idiom:
>   version (Windows)
>     extern (Windows):
>   else
>     extern (C):
> Which no longer works in D1.x.

I updated the code to use "ref_" and removed all extern(Windows) legacy.
(Probably requires MinGW to build, but it could be considered a feature)

"Still using" is relative, the code was from 2005 and used to work then.
Tested OK now on Mac OS X 10.4 with GDC 0.24 (~ DMD 1.020), at least...

--anders


More information about the Digitalmars-d-learn mailing list