May 09, 2012
Le 09/05/2012 18:11, mta`chrono a écrit :
> Am 09.05.2012 08:10, schrieb SiegeLord:
>> 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 remember that we already had a discussion of that long ago, but why
> not just replacing them with variadic templates like I did in my tango
> fork. Basically you only need to change tango.text.convert.Layout
> heavily. The rest are trivial changes on every stuff that is using
> tango's formater. But that doesn't have to necessarily say that you're
> breaking existing code!

Template don't work when it come to OOP and polymorphism.

Or if you want your interface to be an opaque API to a binary blob.
May 09, 2012
On 2012-05-09 15:10, Lars T. Kyllingstad wrote:
> On Wednesday, 9 May 2012 at 11:57:46 UTC, Jacob Carlborg wrote:

>> * Template
>> * D style
>> * Type safe
>> * C style
>
> Five, if you count lazy variadics.

You see, I even forgot one :)
But that one could also be considered a specialized type safe variadic function.

-- 
/Jacob Carlborg
1 2
Next ›   Last »