Duplicate identifier 'StripAll'
Monkey Forums/Monkey Programming/Duplicate identifier 'StripAll'
| ||
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? |
| ||
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. |
| ||
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. |
| ||
Sorry thought I knew a solution (!) |
| ||
Is the new module developed by you? Does it use reflection? |
| ||
@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: |