reflection based on my experience so far on compile-time meta-programming in D as a novice user: the problems
mingwu at gmail.com
Tue Sep 15 03:14:25 UTC 2020
On Tuesday, 15 September 2020 at 02:42:35 UTC, H. S. Teoh wrote:
> really, it's just grouping the input arguments based on some
Yes, that's why I asked how to handle multiple (logical) set of
variadic parameters in D if we need it.
> If that's not desirable to you for whatever reason, then just
> write a string function to generate the code and mix it in. Or
> better yet -- and this is actually my preferred approach if I
> were to do hundreds of such TA_xxx functions -- write a D
> program that parses some input file (perhaps even the C header
> itself, if it follows a simple to parse format) and generates a
> .d file.
I would try that at certain stage.
Thanks all for the discussions and suggestions.
More information about the Digitalmars-d