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
 1526: Implement method, return, wrong namespace
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

drzoom
Ketchup Master

Switzerland
57 Posts

Posted - Jul 10 2006 :  07:51:58 AM  Show Profile  Reply with Quote
Using VAX 1526 with C++ in VS2005:

This situation:

grounding.h

#pragma once

namespace airplane {
namespace crashs {

class Grounding
{
	typedef int VictimCount;
public:
	Grounding();
	~Grounding();
protected:
	VictimCount getVictims() const;
};

}
}


grounding.cpp

#include "grounding.h"

namespace airplane {
namespace crashs {

Grounding::Grounding() 
{

}

Grounding::~Grounding() 
{

}

}
}


Select "Implement method" on "VictimCount getVictims() const;". You get this Implementation:


VictimCount airplane::crashs::Grounding::getVictims() const
{

}


Bug: The type "VictimCount" needs to be declared in the same namespace as the class. A correct implementation would be:


airplane::crashs::VictimCount airplane::crashs::Grounding::getVictims() const
{

}


Feature Request: Even better would be this result:

grounding.cpp

#include "grounding.h"

namespace airplane {
namespace crashs {

Grounding::Grounding() 
{

}

Grounding::~Grounding() 
{

}

VictimCount Grounding::getVictims() const
{

}

}
}




best regards
Tobias

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 10 2006 :  6:39:43 PM  Show Profile  Reply with Quote
i run into the same bug myself fairly often when returning a nested type

case=1247

a little irritating, but not enough to stop me using Create Implementation all over the place

the request to place the code into the existing namespace block has already come up

case=1359

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

drzoom
Ketchup Master

Switzerland
57 Posts

Posted - Jul 11 2006 :  04:06:35 AM  Show Profile  Reply with Quote
How can I lookup the cases you list here?

best regards
Tobias
Go to Top of Page

bugfix
Tomato Guru

Germany
324 Posts

Posted - Jul 11 2006 :  04:24:24 AM  Show Profile  Reply with Quote
you can't.

http://www.mf-sd.de
Go to Top of Page

rhummer
Tomato Guru

USA
527 Posts

Posted - Jul 11 2006 :  09:06:40 AM  Show Profile  Reply with Quote
The cases are listed for our reference when the bug is fixed, we can search the forums for the case and note what build it will be fixed in.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

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