Future of D style variadic fuctions

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Wed May 9 02:58:19 PDT 2012


And template functions cannot get instantiated at run-time. Variadic
functions can mimic run-time instantiated template functions.

On Wed, May 9, 2012 at 1:38 PM, Jacob Carlborg <doob at me.com> wrote:
> On 2012-05-09 08:10, SiegeLord wrote:
>>
>> 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
>
>
> I really hope they stay. Template functions cannot be virtual.
>
> --
> /Jacob Carlborg



-- 
Bye,
Gor Gyolchanyan.


More information about the Digitalmars-d mailing list