Re: namespace-nonproblem
- Posted by Irv Mullins <irv at ELLIJAY.COM> Apr 22, 1998
- 702 views
At 02:13 AM 4/23/98 +1200, Matthew McNamara wrote: >Let me check I got this straight. You have 2 or more include files >written by different people, but when you include them one attempts >to redefine a global variable or routine or constant. > >Isn't the easiest course of action to edit the offending source file >and change the identifier? > Ah...no. For several reasons: 1. You will have to ship the edited file(s) along with your program to everyone who uses it. Now there will be two versions of that file -- eventually 3 or 5 or 12..... now which one is the right one? 2. The modified file will "break" most if not all previous programs written to include it. (Guaranteed to upset folks.) 3. Sometimes names make sense. It is a shame to change them to something less intuitive, simply because you have already used that name for something else. Irv ---------------------------------------------------------- --Visit my Euphoria programming web site:-- --http://www.mindspring.com/~mountains -- ----------------------------------------------------------