D equivalent of the X macro?
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 2 06:58:34 PDT 2014
On 02/05/14 02:22, H. S. Teoh via Digitalmars-d wrote:
> I was reading this article of Walter's:
>
> http://www.drdobbs.com/cpp/the-x-macro/228700289
>
> Which is a neat trick that I wish I'd known back when I was writing
> C/C++. But the thought crossed my mind: what's the D equivalent of the X
> macro, since D doesn't have macros? Any ideas?
The Color example is already handled by D, if I recall correctly.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list