Global pound define?

  • Thread starter Thread starter Andrew
  • Start date Start date
A

Andrew

Is there a place you can globally #define so that
what's #define'd is in all classes' scope?

Such as #include - other .c files for C?

Thanks,

Andrew
 
Not really, AFAIK, each class has to declare what namespaces to import.
This uses the using keyword in C# or imports in VB.NET....

there's a good explanation of why this would really be a problem for an OO
language:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=utf-
8&threadm=dda1fb3a.0207221304.4d36d34b%40posting.google.com&rnum=1&prev=/groups%3Fq%3DC%2523%2B%2523include%26num%3D50%26hl%3Den%26lr%3D%26ie%3DUTF-
8%26oe%3Dutf-8%26sa%3DN%26tab%3Dwg

depending on your point of view...
 
Back
Top