Thanks @tera, I confirm this workaround works. I guess if it is impossible, I will have to do with this workaround.
To answer your why, if I remember the context (this is an old issue I had, I am at the moment stuck on this issue) I had this use case in C:
typedef struct {
const char* name;
int age;
} student_t;
const student_t my_students[] = {
{ .name: "Tom", age: 18 },
{ .name: "Bob", age: 18 },
{ .name: "John", age: 19 }
};
void process_student(student_t* student) {
(...)
}
And I wanted to call process_student() from Swift with one of the my_students.