1. [E - 21to 22 Apr 1998] Namespaces

On Thu, 23 Apr 1998 00:00:33 -0500, Matthew McNamara
<mat at ICONZ.CO.NZ> wrote...

>Let me check I got this straight.  You have 2 or more include files
>written by different people, but when you include them one attempts
>to redefine a global variable or routine or constant.

Essentially.

>Isn't the easiest course of action to edit the offending source file
>and change the identifier?

Yes - if you have the clear source.  It's possible that you'll
only have shrouded code, in which case you can't really do this.
Also, it's entirely possible that modifications will need to be
_quite_ extensive, if either of the conflicting routines is
heavily used by other routines in the same include file.  Plus,
while this may be (marginally) viable with two or three includes,
the problem increases exponentially when you have more includes -
and you end up having to know all of the routines involved
simultaneously, so that you can avoid generating new conflicts
while trying to resolve existing ones - which is part of the
problem in the first place.

--
Jeff Zeitlin
jeff.zeitlin at mail.execnet.com

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu