D-etractions A real world programmers view on D

Jacob Carlborg doob at me.com
Thu Aug 30 13:03:13 PDT 2012


On 2012-08-30 21:00, Steven Schveighoffer wrote:

> I don't think the problem is solvable with CPP, because it's not always
> possible to know how it's included.
>
> For example, if I have a file x.h which does:
>
> #ifdef A
> #define B
> #endif
>
> And I edit x.h, how does it know the original source file which includes
> x.h does or doesn't define A before including x.h?  That is the issue I
> was having.

Oh, yeah, that would be a bit complicated :)

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list