Metaprog can be abstruse
bauss
jj_1337 at live.dk
Mon Jul 4 11:28:16 UTC 2022
On Monday, 4 July 2022 at 10:37:14 UTC, user1234 wrote:
>
> still the same problems as the initial version (even if yes I
> know it's absurd code)
I'm actually not sure what you're even trying to achieve or what
problem you're trying to solve tbh.
Could you perhaps give an example of what your expectations are
and how exactly this differs from your expectations of runtime?
Because my modified version of yours works both at ctfe and
runtime, so it has nothing to do with ctfe really. The only thing
ctfe about is that it's statically initialized, but you can use
it for runtime arrays too, where the function will be executed at
runtime.
So there's really no metaprogramming involved in that.
More information about the Digitalmars-d
mailing list