On 12/16/2015 06:29 PM, H. S. Teoh via Digitalmars-d wrote:
Allow overloading by number of arguments, maybe? (This sounds suspiciously like a slippery slope, though...)
That'll have trouble with $0 and $+.
Or allow argument list slicing, D-style? Not sure if this would solve all the necessary cases.
Overall I think a few additions to the macro engine could be very beneficial. E.g. while working on dconf.org I could use $(IF a, b, c) to expand b if a is nonempty and c otherwise.
Andrei