March 01, 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
March 01, 2008
torhu wrote:
> 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

Tango's PFLOAT is wrong too.
March 01, 2008
Thanks. Issue entered to Tango's Trac, http://www.dsource.org/projects/tango/ticket/955 ElfQT

torhu Wrote:

> torhu wrote:
> > 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
> 
> Tango's PFLOAT is wrong too.

1 2
Next ›   Last »