druntime vararg implementation

Mike via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Nov 5 16:16:48 PST 2014


On Wednesday, 5 November 2014 at 14:24:00 UTC, Sean Kelly wrote:
> On Wednesday, 5 November 2014 at 09:45:50 UTC, Mike wrote:
>> Greetings,
>>
>> In core.varar. 
>> (https://github.com/D-Programming-Language/druntime/blob/master/src/core/vararg.d), 
>> why is the X86 implementation singled out and written in D 
>> rather than leveraging the standard c library implementation 
>> like the others?
>
> No idea.  It seems like a pointless duplication of code.  Maybe 
> just to have some documented functions within the module?

In that case, a better question is "Why use the standard C 
implementation if we have working D code?".


More information about the Digitalmars-d-learn mailing list