March 01, 2008 Re: directx with d | ||||
|---|---|---|---|---|
| ||||
Posted in reply to ElfQT | 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 Re: directx with d | ||||
|---|---|---|---|---|
| ||||
Posted in reply to torhu | 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 Re: directx with d | ||||
|---|---|---|---|---|
| ||||
Posted in reply to torhu | 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. | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply