directx with d

torhu no at spam.invalid
Sat Mar 1 08:54:29 PST 2008


ElfQT wrote:
> The difference lies:
> 
> Phobos, \dmd\src\phobos\std\c\windows\windows.d:
> alias float FLOAT;
> 
> Tango, D:\D\import\tango\sys\win32\Types.di:
> alias double FLOAT;
> 
> (Before you ask, I use type FLOAT - uppercase - because I copy some directx code, which already uses that.)
> With directx on win32, the phobos approach is working, Tango FLOAT produces errors.
> 
> Is this intended in Tango? Is there already code requiring FLOAT to be double?

This looks like a tango bug, FLOAT is a C float.

http://msdn2.microsoft.com/en-us/library/aa383751.aspx



More information about the Digitalmars-d mailing list