Now a declaration like 'struct Foo;' can be used to establish the name of a struct type, without providing a definition. One can pass pointers to such types around the system, but can't do much else with them (as in C/C++). Issue #125.
6 lines
141 B
Plaintext
6 lines
141 B
Plaintext
// Member operator "->" can't be applied to declared but not defined struct type
|
|
|
|
struct Foo;
|
|
|
|
int bar(Foo * uniform foo) { return foo->x; }
|