Skip to content

Multiple "custom extension" callbacks with same signature share indices #2342

Open
@nicolaskagami

Description

@nicolaskagami

When using the function add_custom_ext the callbacks are stored using indices that depend solely on their function signature, as implemented on cached_ex_index. More specifically, a TypeId of the signature is used to generate the key.

This means that two different callbacks with the same signature will overwrite each other.
The key for the index should depend on its identifier (a.k.a. "extension type") as there should be a one-to-one relation between an extension type and its callbacks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions