Re: Namespace Qualifiers

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

----- Original Message -----
From: "Greg Haberek" <g.haberek at comcast.net>
To: "EUforum" <EUforum at topica.com>
Subject: Namespace Qualifiers


>
> Please forgive me if this has been answered before, but I'm a bit
confused.
>
>
> -- found in User32.ew:
> include win_misc.ew
> include msgbox.e
> include gdi32.ew
>
> -- found in Win32Lib.ew:
> include machine.e
> include dll.e
> include msgbox.e
> include file.e
> include get.e
> include wildcard.e
> include image.e
> include tk_maths.e
> include tk_misc.e
> include tk_mem.e
>
> both win_misc.ew and tk_maths.e contain a function called or_all()
> when I include both User32.ew and Win32Lib.ew in the same program, I get
the error:
>
> C:\EUPHORIA\include\Win32Lib.ew:1743
> a namespace qualifier is needed to resolve or_all
>  store( icc, INITCOMMONCONTROLSEX_dwICC, or_all( { ICC_WIN95_CLASSES,
>
> If tried including either User32.ew or Win32Lib.ew with a namespace
qualifier, but qualifiers
> are local, and I need to include either win_misc.ew or tk_maths.e with a
qualifier.
>
> How do I 'resolve' this with out modifying User32.ew or Win32Lib.ew?

You can't. Euphoria's namespace concept does not help us in this situation.

I would reason that because win32lib does NOT include win_misc.ew, either
explicitly or implicitly, that the 'or_all' that win32lib is referring to is
the one in tk_maths.e, which win32lib DOES include. Why Euphoria thinks that
win32lib might be trying to refer to a version of a routine that it had no
knowledge of is weird.

What I need to do is to put namespace qualifiers on every routine that
win32lib references. There must be only a few thousand of those....

----------------
cheers,
Derek Parnell

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

Search



Quick Links

User menu

Not signed in.

Misc Menu