Re: Do you currently use namespaces?
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?
-- libfoo.e
global procedure baz(...)
...
baz(...)
-- libbar.e
global procedure baz(...)
...
baz(...)
-- app.ex
include libfoo.e
include libbaz.e
....
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
|
Not Categorized, Please Help
|
|