Re: Conflicts with words

new topic     » goto parent     » topic index » view thread      » older message » newer message
sergelli said...

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu