Objective-D, reflective programming, dynamic typing

grauzone none at example.net
Fri Apr 3 08:11:45 PDT 2009


Jarrett Billingsley wrote:
> On Fri, Apr 3, 2009 at 10:38 AM, Eljay <eljay at adobe.com> wrote:
> 
>> Alas, I'm not sure how to pass the variadic arguments through to another variadic function, with this
>> signature:
>> void perform(...)
> 
> You can't.  D's varargs suck.
> 
>> I also tried using Variant array -- wherein I expected automagic Variant packaging (assuming I
>> understood the documentation correctly) -- but that did not work (could be PEBKAC):
>> void perform(Variant[] ar ...)
> 
> This is *exactly* what I'd like to replace D's varargs.  I've
> suggested it several times.

The Gods are saying that varargs suck too much for fixing them, and that 
you should use compile time varargs (with tuples) instead.



More information about the Digitalmars-d mailing list