I want to generate a struct at comptime with a const field inside the namespace.
The expected result would be like this.
const x = struct {
const desc = "";
}
Or this is not permitted for the same reason function are?
I want to generate a struct at comptime with a const field inside the namespace.
The expected result would be like this.
const x = struct {
const desc = "";
}
Or this is not permitted for the same reason function are?
It is not possible to add declarations (const, var, fn) to reified types.