X header like functionality

2012-07-08 Thread Mattias
Hi, I spent some time recently learning D. I am curious about the best way to implement something like X-includes in C. I.e. where one use macros that you redefine at the include point. This is indispensable sometimes for keeping code in sync. For example, if we in an include header writes: -

Re: X header like functionality

2012-07-08 Thread Lukasz
On Sunday, 8 July 2012 at 08:05:58 UTC, Mattias wrote: Hi, I spent some time recently learning D. I am curious about the best way to implement something like X-includes in C. I.e. where one use macros that you redefine at the include point. This is indispensable sometimes for keeping code in s

Re: X header like functionality

2012-07-08 Thread Matt Soucy
On 07/08/2012 05:39 AM, Lukasz wrote: On Sunday, 8 July 2012 at 08:05:58 UTC, Mattias wrote: Hi, I spent some time recently learning D. I am curious about the best way to implement something like X-includes in C. I.e. where one use macros that you redefine at the include point. This is indispen