Method signature differences in core modules on dmd and gdc?

Gary Willoughby via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 12 15:05:16 PDT 2014


On Sunday, 12 October 2014 at 19:34:30 UTC, Iain Buclaw wrote:
> On Sunday, 12 October 2014 at 19:20:49 UTC, Gary Willoughby 
> wrote:
>> I've been recently trying GDC out to compile some D code and 
>> i'm running into the problem of differing function signatures 
>> in core modules.
>>
>> For example:
>>
>> stack.d:79: error: function core.memory.GC.calloc (ulong sz, 
>> uint ba = 0u) is not callable using argument types (ulong, 
>> BlkAttr, TypeInfo_Array)
>> stack.d:110: error: function core.memory.GC.realloc (void* p, 
>> ulong sz, uint ba = 0u) is not callable using argument types 
>> (string*, ulong, BlkAttr, TypeInfo_Array)
>> <snip>
>>
>> These compile fine using DMD. Anybody know what the issue is 
>> here?
>
> GDC is still on version 2.065.

Ah right, so these methods changed recently?


More information about the Digitalmars-d-learn mailing list