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
 covert dot to -> and smart pointers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

_Ramirez_
New Member

9 Posts

Posted - Apr 01 2009 :  08:11:30 AM  Show Profile  Reply with Quote
Conversion from dot to -> is very useful as one doesn't have to think whether variable is pointer or not, and is much easier to type. But when working with smart pointers that have their own members but can also be accessed using -> things could be better. The feature currently works as expected in that it doesn't covert dot to -> but it would be useful to allow some easier method of typing -> instead of dot. Dot followed by shift (like in m_) comes to mind or ctrl + dot. Or maybe there can be a separate setting for classes that have overloaded operator -> so that one can say if he wants the dot always to be converted.

sean
Whole Tomato Software

USA
2817 Posts

Posted - Apr 01 2009 :  10:49:07 AM  Show Profile  Reply with Quote
I think that adding a different command / keybinding would make it harder / less likely to be used. So, do people think it should be a separate option or should the one option start making the conversion happen for smart pointers too? We have an open feature request for this (case=999).


Alternatively, case=1983, is a request to add '.' as a reverse conversion:
typing . after -> deletes the -> and leaves just .

for smart pointers that could be:
typing . after . deletes the . and leaves just ->


Anyone have any thoughts on this?
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jun 12 2009 :  8:59:55 PM  Show Profile  Reply with Quote
case=999 is implemented as an option in build 1727
Go to Top of Page

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Jun 19 2009 :  3:35:35 PM  Show Profile  Reply with Quote
To control this feature, use VA Options | Advanced | Corrections | Convert dot to -> if operator -> is overloaded

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company
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