Translating C macros to D
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jul 11 00:26:10 PDT 2017
Jacob Carlborg wrote:
> On 2017-07-10 21:51, ketmar wrote:
>
>> string mixin with concatenation. this is basically what C macro is
>> anyway.
>
> So you mean pass all arguments to the function as strings and using a
> string mixin on the call site?
yes. this is what i'm usually doing with C macros -- 'cause it is the
easiest way to make 'em "just work".
More information about the Digitalmars-d
mailing list