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
 Feature Requests
 Alt+G and Constructors
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

khb
Tomato Guru

Germany
337 Posts

Posted - Nov 28 2006 :  07:30:53 AM  Show Profile  Reply with Quote
Assume I have the following line:
  MyClass myObject(parameters,...);
If I place the cursor on myObject and press Alt+G it jumps to the beginning of that line. This doesn't make much sense to me. Imho VA should take me to the declaration/definition of the constructor.

I'm using VC6, Win XP, no further add-ins.

Regards,
Marcus.

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Nov 28 2006 :  10:38:03 AM  Show Profile  Reply with Quote
Currently this is by design, since myObject is a variable, and this is where the variable is defined.
To jump to this specific constructor would require VA to understand which function this is, which requires matching the parameters, and dealing with default parameters. There are plans to enhance alt-g to handle these, but these are longer term plans.

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

khb
Tomato Guru

Germany
337 Posts

Posted - Nov 29 2006 :  02:29:16 AM  Show Profile  Reply with Quote
I understand, why it's working that way. Anyway, this behavior isn't of any help. Moreover, I have no option to jump to a constructor. Please correct me if I'm wrong. It would even be helpful if VA would jump to any constructor of the corresponding class, because constructors are always grouped in the code I work on. But, of course, your longer term plan sounds even better! So, please make it one of your most important longer term plans

Regards,
Marcus.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Nov 29 2006 :  08:43:08 AM  Show Profile  Reply with Quote
Have you tried the HCB? This should let you pick out the class constructors and then jump to them.

I have put in a feature request for this

case=3842

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

khb
Tomato Guru

Germany
337 Posts

Posted - Nov 30 2006 :  02:47:31 AM  Show Profile  Reply with Quote
Thanks for the tip. The HCB is certainly a workaround. Most of the time I have the file view open, so I always forget about the VA view.

Regards,
Marcus.
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