Duplicate identifier 'StripAll'

Monkey Forums/Monkey Programming/Duplicate identifier 'StripAll'

Peeling(Posted 2015) [#1]
Since importing a new module, I'm starting to get compiler errors about this function being redefined in multiple places (functions, os, filepath). Which it indeed is! Why hasn't this been a problem before?


therevills(Posted 2015) [#2]
What is the new module? Is it Diddy? If so Diddy has its own StripAll function, you will need to fully qualify the function you are using.


Peeling(Posted 2015) [#3]
No, the new module doesn't have StripAll in it. All the modules with their own versions of StripAll in them were already in use in the project (brl, os, diddy) but there were no errors.

AFAIK it's not possible to qualify StripAll because it's defined as a global function every time.


tiresius(Posted 2015) [#4]
Sorry thought I knew a solution (!)


therevills(Posted 2015) [#5]
Is the new module developed by you? Does it use reflection?


ImmutableOctet(SKNG)(Posted 2015) [#6]
@Peeling: You're importing something that's using the old 'os' module, simple as that. You could use the exact function name, as therevills said, or you could use an alias if you're lazy (Preferably a private one). But if it is someone else's module (Diddy for example), you should tell the developer to use the new 'brl' modules, instead of the 'os' module.

Example: