Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!lan!sun7.lrz-muenchen.de From: uh311ae@sun7.lrz-muenchen.de (Henrik Klagges) Newsgroups: comp.lang.c++ Subject: ARRG! Namespace Keywords: Namespace pollution Message-ID: <5299@tuminfo1.lan.informatik.tu-muenchen.dbp.de> Date: 2 Nov 90 10:04:31 GMT Sender: news@lan.informatik.tu-muenchen.dbp.de Reply-To: uh311ae@sun7.lrz-muenchen.de () Organization: LRZ, & STM Group at LMU Munich Lines: 31 ARRGH ! I want C & C++ to implement a name-space policy that can be validated ! I tried to build a very big package and found the linker complaining about this and that being undefined. With all these nested #includes, the final solution was: grep /usr/include/* 8( 8( 8( grep /usr/local/include/* 8( 8( 8( grep I want: #include printf("This is printf explicitly included.\n"); and #include stdio.h::printf("This is printf implicitly (with stdio.h) included.\n"); stdio.h::printf("Therefore the name has to preceded with the header name.\n"); This would solve a lot of problems, including the monolithic-class-libraries' designers desire to call his root class "object". Comments, please. Yours, Henrik Klagges Scanning tunnel microscope group at LMU Munich. uh311ae@sun7.lrz-muenchen.de