Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!rochester!bbn.com!papaya.bbn.com!rsalz From: rsalz@bbn.com (Rich Salz) Newsgroups: comp.lang.c++ Subject: Re: namespace (rethought & reiterated) Message-ID: <3353@litchi.bbn.com> Date: 7 Mar 91 17:36:45 GMT References: <2620020@otter.hpl.hp.com> <4196@lupine.NCD.COM> <5318@vela.acs.oakland.edu> Organization: BBN Systems and Technology, Inc. Lines: 14 In <5318@vela.acs.oakland.edu> schemers@vela.acs.oakland.edu (Roland Schemers III) writes: >I just had namespace pollution spoil my weekend. We just got in Motif >from DEC, and it has C++ compatible headers, so I was all set to >start hacking away... Till I noticed they had a 'typedef char *String;' Here's what I do when something like this happens: #define String MOTIF_STRING #include #include ... #undef MOTIF_STRING -- Please send comp.sources.unix-related mail to rsalz@uunet.uu.net. Use a domain-based address or give alternate paths, or you may lose out.