Skip to content

Understand attribute hacks #866

@krlmlr

Description

@krlmlr

What is the function of R_igraph_attribute_protected and R_igraph_attribute_protected_size ?

Introduced in response to igraph/igraph#508.

Do we even need to call R_PreserveObject() and R_ReleaseObject() on the list that contains all attributes? It seems necessary currently, e.g., #865 only passed tests after 2a6e845 has been added.

Need a better understanding of object lifetime, and perhaps more documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions