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

--- Comment #3 from naydef <[email protected]> ---
Adding 'static' to class Delegate does not change anything(suggested by Adam)

-------------------------------------------------
auto HookVFunc(T)(T)
{
    extern(C++) static class Delegate
    {
        void dd() {}
    }
}


class SamplePlugin
{
    void Load()
    {
        HookVFunc(&GameFrame);
    }

    void GameFrame()
    {
    }
}

--

Reply via email to