problem with array of delegates!

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Jun 19 07:53:27 PDT 2011


Remove takes an offset, not a value as far as I know.

If you need fast lookup and removal you could use hashes instead:

int main(string[] argv)
{
    auto a = new A;
    SlotDelegate x = &a.DIT;

    bool[SlotDelegate] _slotDg;
    _slotDg.remove(x);

    return 0;
}


More information about the Digitalmars-d-learn mailing list