Re: Do you currently use namespaces?

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

Matt Lewis wrote:
> 
> Bernie Ryan wrote:
> > 
> > Matt Lewis wrote:
> > > 
> > > Bernie Ryan wrote:
> > > > 
> > > > 
> > > >  No, because it never really worked that well.
> > > 
> > > I hear this complaint a fair amount.  Bernie, could you elaborate on what
> > > didn't work well for you?
> > > 
> > 
> > Matt:
> > 
> >     When ever I tried to use it was because I ran into a conflict with 
> >     a function name so I would assign some qualifier to the include file.
> >     Then when I added that include file some function would conflict with
> >     some other file. In larger programs it just cascaded into having to
> >     add too many function qualifiers. I became very frustrated, so I quit
> >     using other user's libraries and just started writing my own functions
> >     and using only libraries that come with the Euphoria install. 
> 
> Is this an accurate example of what you were seeing?
> }}}
<eucode>
> -- libfoo.e
> global procedure baz(...)
> 
> ...
>    baz(...)
> 
> -- libbar.e
> global procedure baz(...)
> 
> ...
>    baz(...)
> 
> -- app.ex
> include libfoo.e
> include libbaz.e
> 
> ....
> </eucode>
{{{

> 
> In other words, there were conflicts not just in your code, but within
> the libraries themselves?  This was a problem.  It's fixed now.
> 
> Otherwise, it sounds like they were doing exactly what they were designed
> to do.  How else would you have solved the problem?
> 

Matt:

  I can't remember a good example of why I stopped using it off hand.
  
  The next time I run into the problem I will give you an example of

  the problem. I know one way to get around some problems was to use

  machine_func() calls which everyone was using to get around some problems.

  I noticed on the list I was among the majority of users NOT using

  namespaces why don't you ask the other users maybe that would help you.



Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

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

Search



Quick Links

User menu

Not signed in.

Misc Menu