Skip to content

Questions on "Shared Structs" #48

Description

@felixlinker

In Shared Structs there is the example of the Cord struct and permissions given to its field. I don't understand why the Scale function requires permissions to the fields of c. In my mental model, a pointer to a struct like this points to a continuous area of memory for which one must have permissions. So one would only need permissions to access the pointer for the struct but not the ints as permissions to the ints is subsumed by the permission to access the struct.

I wonder whether this is something that may be worth clarifying.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions