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
 Replace 'auto' with actual type
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

smurfjones
New Member

5 Posts

Posted - Jan 22 2015 :  12:42:25 PM  Show Profile  Reply with Quote
Upon hovering over a variable declared auto the deduced type is displayed as a tooltip. This is great. What would would be awesome is a way to change the auto keyword to the actual deduced type. Perhaps you could overload the "Create From Usage" feature to do this?

Thank you!

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Jan 23 2015 :  5:01:42 PM  Show Profile  Reply with Quote
We are considering adding this ability at some point:

case=79735

out of interest, why do you want to do this?

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

smurfjones
New Member

5 Posts

Posted - Jan 27 2015 :  2:59:52 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

We are considering adding this ability at some point:

case=79735

out of interest, why do you want to do this?



I am only allowed to use auto at my work when the type is not important. For example loop iterators. When writing my code I often don't want to type out the type name so I just use auto purely out of convenience. However before i commit I have to go back and replace auto with the type. This would allow me to easily do that.

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Jan 27 2015 :  7:47:15 PM  Show Profile  Reply with Quote
That makes sense, thank you, I can see how this would help in a situation like this. We have had someone else report basically the same situation and make the same request.

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