(no title)
purplesyringa | 5 months ago
Wouldn't that just be slightly different syntax for the same idea? If you want to represent relationships like "the pointer in the field Struct::field_name within this argument is linked with the lifetime of the returned pointer" and you want them to be reusable across functions and contexts, isn't the most obvious way to write that a variant of
struct Struct<'a> {
char *'a field_name;
};
char *'a f<'a>(Struct<'a>& struct);
?
Panzerschrek|5 months ago