Replies: 2 comments 5 replies
-
Hi, not yet, but that's what I'm currently working on ;) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Regarding this, there is very WIP implementation in the master. Compile-time functions can be now used for type generation like this: Data :: fn (TValue: type) type #comptime {
return struct {
value: TValue;
};
}
set_value :: fn (data: *?T, value: T.value) {
data.value = value;
}
main :: fn () s32 {
data: Data(string);
set_value(&data, "hello!");
return 0;
} |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to create polymorphic data structures?
Beta Was this translation helpful? Give feedback.
All reactions