RE: include statement bugs
- Posted by Chris Bensler <bensler at nt.net> Oct 18, 2004
- 582 views
Robert Craig wrote: <SNIP> > The second include is ignored on the assumption that they > are essentially the same. ("belief" that they are "identical" > overstates things a bit) You know what they say about 'assume', don't you? <SNIP> > I consider this to be a tiny issue that affects maybe 1% or less > of all programs. I think it took several years for anyone to > even notice how it works. It took me all of maybe 6 months to discover that Euphoria won't let me use subfolders. > How many people want to include two files > in one program, where the files have the same name, but > different content? If you really do keep track of the feature requests and problems that people have with Euphoria, you should know better than me, that the request to be able to include the SAME file more than once is very common. Nevermind the ability to include a file with the same name but different content. God forbid Euphoria might actually become popular and have 1,000,000's of available source files. They couldn't possibly use the same name, the combinations are endless. > As I think back 10 years or so, I think I did it > this way because I didn't want: > graphics.e > .\graphics.e > ./graphics.e > c:\euphoria\include\graphics.e > \euphoria\include\graphics.e > c:graphics.e > to be considered "different" files, leading to > multiply-defined symbol error messages, > when in fact they might be exactly the same file, > or at least a copy of a file. I didn't want to write code > to resolve the paths, to prove that one of them was in fact > the same file as another. > > If this bothers you, just rename one of your files (and avoid > confusing the reader of your code). What bothers me, is the fact that you would so blatantly HACK, and even admit to it, and stand by it! It worries me to think what else you've hacked into Euphoria. Hacks lead to more hacks. It also worries me to think you beleive that renaming 3rd party files is a solution. <SNIP> Is there anyone who agrees with how euphoria deals with duplicate includes? Chris Bensler Code is Alchemy