Re: Euphoria Standard Library on UBoard

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

Robert Craig wrote:
> 
> irv mullins wrote:
> > &gen
> > Bernie Ryan wrote:
> > > 
> > > I been using Euphoria for over 5 years and have had to use
> > > different names for my routines many times. I have respected
> > > other users names and have had to use a different name.
> > > I think that you will find that is why derrek started his
> > > his present naming convention in the win32lib. When you and
> > > and jason have written a lots of code to contribute to
> > > the archive you will understand why it's not easy to come up
> > > with different names and then to have to change them.
> > > Why don't you prefix your routines as derrek does ?
> > 
> > Instead of asking all Euphoria users to 'prefix their routines', 
> > why not ask RDS to improve namespacing so this isn't a problem?
> > 
> > Oh, nevermind. I guess I know the answer.
> 
> The Euphoria namespace feature does precisely what
> is required in this situation. It gives you a way to specify
> which global symbol you are referencing, in a situation where
> there are multiple included files (usually by different authors)
> that coincidentally contain symbols with the same name.

This mostly works.  Where it won't is if two multi-file libraries have 
conflicting symbols, and don't use namespaces internally, or if you have 
more complicated library dependencies that haven't used namespaces for
everything.  This is the situation the the proposed namespace change would 
have fixed, but didn't make it into 2.5.  For those who don't recall or 
weren't around at the time, see this thread:

http://www.listfilter.com/cgi-bin/esearch.exu?thread=1&fromMonth=6&fromYear=8&toMonth=8&toYear=8&keywords=%22another+look+at+namespaces%22
..and this:
http://www.listfilter.com/cgi-bin/esearch.exu?fromMonth=5&fromYear=9&toMonth=7&toYear=9&postedBy=robert+craig&keywords=Namespaces

...or my modified interpreter:
http://www.rapideuphoria.com/exm.zip

Matt Lewis

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

Search



Quick Links

User menu

Not signed in.

Misc Menu