Global pound define?

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
 
C

Craig Deelsnyder [MVP]

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top