https://issues.dlang.org/show_bug.cgi?id=12872

--- Comment #6 from apham <ap...@hotmail.com> ---
Actual benefit is for variadic arguments function call. For this case, it
allows callside to specify how argument to be passed. This also allow to create
generic template to define delegate/event 

void print(A...)(A a)

or

struct DelegateList(Args...)
{
    alias DelegateHandler = void delegate(Args args);

    DelegateHandler[] items;

    void opCall(Args args)
    {
        foreach (i; items)
            i(args);
    }
}

--

Reply via email to