Namespace Collisions – solved

About Monkey 2 Forums Monkey 2 Development Namespace Collisions – solved

This topic contains 6 replies, has 3 voices, and was last updated by  Amon 6 months, 1 week ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #15873

    Abe _King_

    ̶M̶y̶ ̶p̶r̶o̶j̶e̶c̶t̶ ̶h̶a̶s̶ ̶3̶ ̶m̶o̶d̶u̶l̶e̶s̶,̶ ̶w̶h̶i̶c̶h̶ ̶a̶r̶e̶ ̶a̶l̶l̶ ̶u̶s̶e̶d̶ ̶a̶b̶o̶u̶t̶ ̶t̶h̶e̶ ̶s̶a̶m̶e̶,̶ ̶w̶h̶i̶c̶h̶ ̶h̶a̶v̶e̶ ̶m̶u̶l̶t̶i̶p̶l̶e̶ ̶i̶d̶e̶n̶t̶i̶c̶a̶l̶ ̶s̶y̶m̶b̶o̶l̶s̶.̶ ̶T̶h̶i̶s̶ ̶i̶s̶ ̶s̶l̶o̶w̶i̶n̶g̶ ̶d̶o̶w̶n̶ ̶m̶y̶ ̶p̶r̶o̶d̶u̶c̶t̶i̶v̶i̶t̶y̶ ̶a̶ ̶l̶o̶t̶;̶ ̶t̶h̶e̶ ̶w̶o̶r̶k̶a̶r̶o̶u̶n̶d̶s̶ ̶a̶r̶e̶ ̶r̶a̶t̶h̶e̶r̶ ̶p̶o̶o̶r̶ ̶a̶n̶d̶ ̶a̶l̶s̶o̶ ̶d̶o̶n̶’̶t̶ ̶p̶l̶a̶y̶ ̶n̶i̶c̶e̶l̶y̶ ̶w̶i̶t̶h̶ ̶a̶u̶t̶o̶c̶o̶m̶p̶l̶e̶t̶e̶.̶
    ̶I̶s̶ ̶t̶h̶e̶r̶e̶ ̶a̶ ̶f̶e̶a̶t̶u̶r̶e̶ ̶t̶o̶ ̶g̶r̶o̶u̶p̶ ̶a̶ ̶n̶a̶m̶e̶s̶p̶a̶c̶e̶,̶ ̶o̶r̶ ̶r̶e̶f̶e̶r̶e̶n̶c̶e̶ ̶a̶ ̶n̶a̶m̶e̶s̶p̶a̶c̶e̶,̶ ̶u̶n̶d̶e̶r̶ ̶a̶ ̶d̶i̶f̶f̶e̶r̶e̶n̶t̶ ̶n̶a̶m̶e̶?̶ ̶I̶ ̶r̶e̶a̶l̶l̶y̶ ̶n̶e̶e̶d̶ ̶t̶h̶i̶s̶.̶
    ̶I̶f̶ ̶y̶o̶u̶’̶r̶e̶ ̶t̶a̶k̶i̶n̶g̶ ̶r̶e̶q̶u̶e̶s̶t̶s̶,̶ ̶M̶a̶r̶k̶,̶ ̶w̶o̶u̶l̶d̶ ̶i̶t̶ ̶b̶e̶ ̶a̶ ̶q̶u̶i̶c̶k̶ ̶a̶d̶d̶i̶t̶i̶o̶n̶ ̶t̶o̶ ̶h̶a̶v̶e̶ ̶n̶a̶m̶e̶s̶p̶a̶c̶e̶ ̶a̶l̶i̶a̶s̶i̶n̶g̶?̶ ̶I̶f̶ ̶t̶h̶i̶s̶ ̶i̶s̶ ̶t̶o̶o̶ ̶m̶u̶c̶h̶ ̶t̶o̶ ̶a̶s̶k̶ ̶r̶i̶g̶h̶t̶ ̶n̶o̶w̶ ̶o̶r̶ ̶e̶v̶e̶r̶ ̶i̶s̶ ̶t̶h̶e̶r̶e̶ ̶a̶ ̶p̶r̶i̶c̶e̶ ̶I̶ ̶c̶a̶n̶ ̶p̶a̶y̶,̶ ̶o̶r̶ ̶e̶v̶e̶n̶ ̶c̶o̶n̶t̶r̶i̶b̶u̶t̶e̶,̶ ̶w̶h̶e̶r̶e̶ ̶y̶o̶u̶’̶d̶ ̶b̶e̶ ̶w̶i̶l̶l̶i̶n̶g̶ ̶t̶o̶ ̶g̶i̶v̶e̶ ̶i̶t̶ ̶a̶ ̶s̶h̶o̶t̶?̶
    ̶T̶h̶a̶n̶k̶ ̶y̶o̶u̶!̶

    I was completely wrong!



    Just to check… are you aware of the Namespace feature??

    In the docs, it’s under Language -> Namespaces.

    I imagine I haven’t fully grasped the question, though…


    Abe _King_

    I actually looked in the documentation for namespace features before posting this, to make sure the feature I need doesn’t exist, and I could not find what I needed.


    What I absolutely need is something found in every modern language:

    dartlang:     (even has a feature for hiding and showing specific names in a namespace)
    C++:      ( this is literally exactly what I’m saying we need )
    visual basic!!!! 

    Monkey2 needs this — well, I really need it haha. This feature is found in literally every modern language.



    I just tried this for accessing



    Guessing that’s not what you’re after? (In conjunction with the Namespace keyword?)

    If not, I shall STFU… I’m not a real programmer, just been faking it for 35+ years!


    Abe _King_

    I hope that works because every time I tried that the compiler would throw some weird error. At least it did every time I tried yesterday! My intuition was to assume it did, but for some reason, it always said my reference didn’t exist – even though it was imported . . .

    And you’re absolutely a programmer, I hope I didn’t come across as implying anything against that! I did look in the documentation to make sure I wasn’t doing anything wrong or if it was documented but there was nothing about this being possible in the documentation so I finalized my findings that way.

    I justed tested it, and it’s working 😀 – you’re a life saver



    Woo-hoo! No, I just assume I don’t really know what’s going on, as I’m not a pro… I’ve never used this stuff, but glad to hear that was it anyway!




    I just assume I don’t really know what’s going on



    At least yours is an assumption on you not knowing what’s going on whereas mine is a fact on me not knowing what’s going on. 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.