September 15Re: reflection based on my experience so far on compile-time meta-programming in D as a novice user: the problems
Posted in reply to H. S. Teoh
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 criterion. 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.
Copyright © 1999-2018 by the D Language Foundation