long double in C APIs

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 16 07:52:55 PDT 2014


On 9/16/14, 3:45 AM, Nicolas Sicard wrote:
> On Monday, 15 September 2014 at 23:20:45 UTC, Walter Bright wrote:
>> On 9/15/2014 3:24 PM, David Nadlinger wrote:
>>>  2. It effectively forces everybody to make all conversions to long
>>> double
>>> explicit in their code,
>>
>> This is due to D currently not allowing implicit conversion to a
>> struct. It's a general issue, and should be dealt with as a general
>> issue, as it comes up whenever a wrapped type is used.
>>
>
> You say 'currently'. Is there a plan to allow this, if there's no
> ambiguity and if the wrapping struct defines some kind of
> opImplicitCast?

It's on the table. -- Andrei


More information about the Digitalmars-d mailing list