Re: Some problems with EuServer
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Aug 10, 2000
- 441 views
Hi Alex & Kat, I'm working on this very problem at the moment. There are a few routines in win32lib that use "common" names and thus are a potential conflict with other libraries. Until RDS resolves the silly namespace issue, we have to be careful how we name our global entities. I suggest that the authors of libraries that have global functions/procedures, prefix or suffix the global procedure's name with a short tag that identifies the library file. For example, in win32lib the "reverse" function could have been named "w32Reverse" or "reverseW32" or something. This does not absolutely solve the namespace issue but it lessens the potential name conflict. It would be nice (hint, hint, Robert) if we could say things like... s = win32lib.reverse(s) r = misc.reverse(r) or even alias reverse in win32lib.e as w32reverse alias reverse in misc.e as miscReverse s = w32reverse(s) r = miscReverse(r) or even use win32lib.e s = reverse(s) use misc.e r = reverse(r) (Robert, have a look how namespaces are used in C#) cheers, Derek Parnell dparnell @ vic.bigpond.net.au Melbourne, Australia ----- Original Message ----- From: Kat <gertie at PELL.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Thursday, August 10 2000 16:11 Subject: Re: Some problems with EuServer | On 9 Aug 2000, at 17:16, Alex Ford wrote: | | > when i try running the run.bat it opens everything up but then i get this | > error: | > | > G:\euphoria\MyGames\Internet\win32lib.ew:68 | > attempt to redefine reverse - defined already in G:\EUPHORIA\include\misc.e | > function reverse( sequence s1 ) | | This happens a lot, actually, just chose one include file or the other, and comment out | that function in it. Add a line at the top as a note to yourself that you commented it out | and why. Make sure both functions do the same thing, or comment out the one that | does not do what your program needs. | | Kat |