Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VAX 1524: refactoring: move implementation/2
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Jun 20 2006 :  3:27:34 PM  Show Profile  Reply with Quote
When using macros for namespaces the "move implementation" somehow messes it up. I know that a tough one to solve

example:
#define BEGIN_MYNAMESPACE namespace x { namespace y {
#define END_MYNAMESPACE } }

Now, moving a function from the .h to the .cpp file will produce this:
(.h file)
BEGIN_MYNAMESPACE
  class test
  {
    ... some other functions
    void function1() { return; }
  }
END_MYNAMESPACE


(.cpp file)
BEGIN_MYNAMESPACE
    test::function0()...
    test::ctor() ...
    test::dtor()...
END_MYNAMESPACE
    void x::y::function1()
    {
      return;
    }


You can see that VAX correctly knows the full namespace, thus it expands it and prepends it to the function. But it takes it out of the real context.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jun 20 2006 :  4:07:01 PM  Show Profile  Reply with Quote
VA does not currently place the new function into the namespace even without the macro's

i am not sure i want to think about how you go about making this work with macro's

case=1359

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Aug 08 2006 :  01:20:33 AM  Show Profile  Reply with Quote
Fixed in build 1531.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000