Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Alt+G and Constructors

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
khb Posted - Nov 28 2006 : 07:30:53 AM
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.
4   L A T E S T    R E P L I E S    (Newest First)
khb Posted - Nov 30 2006 : 02:47:31 AM
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.
feline Posted - Nov 29 2006 : 08:43:08 AM
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
khb Posted - Nov 29 2006 : 02:29:16 AM
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.
feline Posted - Nov 28 2006 : 10:38:03 AM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000