Re: Conflicts with words
- Posted by mattlewis (admin) Sep 10, 2012
- 1109 views
Thank you very much,
But, edit the file std/socket.e, and changing the word "close" to one that does not cause this type of problem would not be better?
No, it would be much worse. You have now sabotaged your euphoria installation. Anything that you try to run that already uses that would fail. And you cannot easily share your code with anyone else.
In general, editing 3rd party code is a bad idea, since everyone who wants to use your code now has to have the modified version of that third party code. This is not the end of the world, but it's a lot more hassle than simply qualifying your use of that routine with a namespace qualifier.
Also, other people looking at your code may have more difficulty figuring out what you're doing, especially if you've changed something like the standard library.
Matt