[DDMD] Reasoning behind converting new Type -> Type::create
Iain Buclaw
ibuclaw at gdcproject.org
Mon Jan 27 08:21:07 PST 2014
On 27 January 2014 16:04, Daniel Murphy <yebbliesnospam at gmail.com> wrote:
> "Iain Buclaw" wrote in message
> news:mailman.99.1390837599.13884.digitalmars-d at puremagic.com...
>
>> OK. Have you tested calling C++ destructors from D?
>
>
> No, and I don't think they even mangle correctly.
>
>
>> This I ask in sincerity as there is a file with functions re-written
>> from the frontend to work with gdc. Wouldn't want to hit any brick
>> walls here...
>
>
> I guess we should get to splitting up mars.c
>
> global.c/global.h/error.c/error.h ?
>
I tried that once before, only to be asked "Why are you doing this?" :o)
Admittedly, it had some other stuff until I gave up waiting, sent a
pull for global.stdmsg (which got merged in) then reimplemented error,
warning, etc... in gdc.
> Are you planning to have all the gdc driver/glue code in C++ or port some of
> it to D?
There are some parts that could be ported to D. But by and large,
it's not going to be pretty. ie: There's no possible way for us to
correctly mangle c_long in D, and there are some types in GCC that -
depending on the host - could be typedef'd to long, long long or
int64_t.
More information about the Digitalmars-d
mailing list