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.
In Shared Structs there is the example of the
Cordstruct and permissions given to its field. I don't understand why theScalefunction requires permissions to the fields ofc. 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.