D-etractions A real world programmers view on D

Jacob Carlborg doob at me.com
Thu Aug 30 23:33:50 PDT 2012


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

> 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.

There's no possible why to know that. So when you're editing a 
particular header file it will only know about which other files it 
includes. It would be possible to detect if "A" is defined in a file 
that is included by x.h but not the other way around.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list