Future of D style variadic fuctions

Jacob Carlborg doob at me.com
Wed May 9 04:57:46 PDT 2012


On 2012-05-09 13:15, deadalnix wrote:
> Le 09/05/2012 08:10, SiegeLord a écrit :
>> For the ignorant: I do NOT mean variadic templates as used by std.stdio.
>>
>> I note that they are not mentioned in TDPL. What is the deal with them
>> and their future? I'll be very displeased if I have to recode a good bit
>> of Tango that uses them if they are removed... None of my attempts at
>> coding a replacement for them using variadic templates have matched
>> their efficiency (in terms of generated code size) or ease of use (they
>> invariably require a shim function).
>>
>> -SL
>
> They are useful to interface with existing C code and variadic template
> have drawback (they for instance cannot be virtual).

C variadics are note the same as D variadics. D has four kinds of variadics:

* Template
* D style
* Type safe
* C style

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list