1. Some problems with EuServer
- Posted by Alex Ford <FFUltimateMaster at CS.COM> Aug 09, 2000
- 490 views
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 ) Press Enter...{which closes the program} i've already did everything that the READTHIS file said to do... [check with Win32lib.ew and make sure its useing the one with the zip] please if you can help, do... thanks a bunch ahead of time! =)
2. Re: Some problems with EuServer
- Posted by Kat <gertie at PELL.NET> Aug 10, 2000
- 467 views
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
3. Re: Some problems with EuServer
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Aug 10, 2000
- 468 views
- Last edited Aug 11, 2000
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 |
4. Re: Some problems with EuServer
- Posted by Mark Brown <mabrown at SENET.COM.AU> Aug 10, 2000
- 453 views
- Last edited Aug 11, 2000
Derek wrote > 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. As a short term solution, would it be worthwhile writing some sort of preprocessor that could do a search and modify on offending globals using the prefix / suffix idea? Run all your includes through it to search for conflicts and have it rename any offending globals using a prefix of the users choice? Mark
5. Re: Some problems with EuServer
- Posted by Moggie <moggie at INTERLOG.COM> Aug 10, 2000
- 447 views
To add to the age swap thread, I turned 36 last June, and am an AS/400 programmer at an electronics company. I've programmed in what one would call CRT display languages for 10 years, like C, BASIC. I only recently broken into the Windows environment programming so it is like learning all over again. I have a great deal in programming in WinBatch. David Gay
6. Re: Some problems with EuServer
- Posted by Alex Ford <FFUltimateMaster at CS.COM> Aug 10, 2000
- 448 views
gertie at PELL.NET (Kat) wrote: >>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 Okay, i'll try that... thanks!
7. Re: Some problems with EuServer
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Aug 11, 2000
- 461 views
Hi Mark, modifying a 'stamped' include file might just 'unstamp' it. cheers, Derek Parnell dparnell @ vic.bigpond.net.au Melbourne, Australia ----- Original Message ----- From: Mark Brown <mabrown at SENET.COM.AU> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Thursday, August 10 2000 23:27 Subject: Re: Some problems with EuServer | Derek wrote | | > 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. | | As a short term solution, would it be worthwhile writing some sort of | preprocessor | that could do a search and modify on offending globals using the prefix ; | suffix | idea? Run all your includes through it to search for conflicts and have it | rename | any offending globals using a prefix of the users choice? | | Mark |
8. Re: Some problems with EuServer
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Aug 11, 2000
- 440 views
Hello all, Derek Parnell wrote: > 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) Concerning namespace syntax... I seem to remember someone suggesting at one time a solution that made sense to me. It's sort of a combination of the first two solutions mentioned by Derek. An example would be: include win32lib.ew as w32 -- includes can be aliased include misc.e -- but don't have to be. s = w32.reverse (s) -- use win32lib's reverse () r = reverse (r) -- use misc.e's reverse () r = misc.reverse (r) -- also legal All the globals in aliased includes must be prefixed with with the alias. Globals in non-aliased includes can be called/used normally or with a prefix of the include file name (without extension). later, Lewis Townsend . __ _____ __ __ __ __ _____ . /\ \ /\ \|\ \ /\ \ /\ \ /\ \ /\ \ . / \_\ / \____\ \_\/ \_\/ \_\/ \_\/ \____\ . / / / / / ___/ | | / | / / / /\ / __ \ . / / / / / /_\ | | | / | / / / /\_\/ /_ \/ ./ / /\ / / ___/ | | |/ | / / / /\ \ \__ \ .\ / /__\\ / /__\ \ | /| |/ /\ / / \/\_\/ / . \/_____/ \/_____/ \|___/\|___/ \/_/ \_____/ keroltarr at hotmail.com http://geocities.com/keroltarr/ ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com