Records do not work with modules
Given a module Vec3.sac
:
module Vec3;
export all;
struct Vec3 { int x; int y; int z; };
The following will not compile:
use Vec3: all;
int main()
{
v = Vec3{ 0, 0, 0 };
return v.y;
}
No definition found for a function "Vec3::_struct_get_y" ...
But if we break Vec3.sac
after -bpopt
we see that in fact the function does exist.