Re: Att: Rob - namespace problem

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

Hayden McKay wrote:
> 
> There seems to be some "namespace" abnormality under some rare circumstances.
> 
> 1. I'll demonstrate what I was tryeng to do.
> 2. I'll demonstrate a hack I found to fix it.
> 
> I found this problem while codeing a new bst class for an application.
> An extract from the library is something like this...
> 
(snip)

Hehe... I had the exact same thing happen to me. Then I found out the sad
truth... that's actually a "feature" of the language. Include files can only be
included once no matter what namespace it's declared as, directory it's in, etc..
That also means that include files in different directories with the same name
are treated as the same file and included only once. My personal opinion has been
that this is the greatest limitation of Euphoria (partially because I came from
the Modula-2 world). This could improve the use of "object oriented" coding
techniques and would actually DECREASE the amount of bugs in programs (we'd at
least have less people post the same "bug over and over :D).


The Euphoria Standard Library project :
    http://esl.sourceforge.net/
The Euphoria Standard Library mailing list :
    https://lists.sourceforge.net/lists/listinfo/esl-discussion

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

Search



Quick Links

User menu

Not signed in.

Misc Menu