...
Kind of. I am thinking that scope is best when transitive for aggregation but not for indirection:
struct S { int a; int *b; }
void foo(scope S s)
{
static int *x1 = &(s.a); // error
static int *x2 = s.b; // fine
}
...
Kind of. I am thinking that scope is best when transitive for aggregation but not for indirection:
struct S { int a; int *b; }
void foo(scope S s)
{
static int *x1 = &(s.a); // error
static int *x2 = s.b; // fine
}