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
 Insert _ after g and s
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yarin
New Member

Germany
3 Posts

Posted - Feb 10 2005 :  5:06:41 PM  Show Profile
Hi,

I love the "Insert _ after m and shift" feature but it is really lacking support for the g_ and s_ prefixes (for globals and statics). Is it possible to add them to the next build?

Thanks a lot.

Regards,
Yarin

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Feb 10 2005 :  6:12:11 PM  Show Profile
the problem here is that g_ and s_ are probably a lot less standard. lets see how other people respond to this idea.

as for a time scale, it is most unlikely to make it into the next beta, even if it is wildly popular. there are still quite a few outstanding bug reports to address

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

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Feb 11 2005 :  02:54:26 AM  Show Profile
s_ would be bad because sStringName is common. (I realise it would overwrite it, but it's still visual distraction, and there's a risk that you might stop and think after the s and end up with an extra underscore). g_ might be OK, but I think it's a lot less common than m_ (and global variables are evil ).

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

Yarin
New Member

Germany
3 Posts

Posted - Feb 11 2005 :  03:28:01 AM  Show Profile
Stephen wrote:
> (and global variables are evil ).

This is exactly what I added as a comment to the code I'm working on.

Unfortunately it isn't my code and I am obliged to work with it. Since I'm pampered by VA X' m_-Auto-Complete-Feature it is _really_ annoying to me to write "g_" everytime...

Regards,
Yarin
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Feb 13 2005 :  3:08:07 PM  Show Profile
surely you only have a small handful of evil global variables?

personally i would type 'g' and then either wait for VAX to prompt me with the full variable name, or simply hit CTRL_SPACE if i was feeling impatient. given only a couple of global variables VAX should bee prompting you with the correct name after a little while using them and typing 'g'

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

Yarin
New Member

Germany
3 Posts

Posted - Feb 13 2005 :  3:21:33 PM  Show Profile
Ok, and what about s_? static variables ain't that bad... s_-completion could be made a separate option in the options menu so that you can turn it off if you only need the m_-completion.

Regards,
Yarin
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Feb 13 2005 :  5:32:44 PM  Show Profile
i have never used s_ for any of my static variables, perhaps because i never thought of it

each new option is quite a lot of work for whole tomato due to the fact that they have to code around each of the supported IDE's separately for each option. i don't mind the idea, but i would like to see a bit more support before putting in a request.

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

msew
Ketchup Master

94 Posts

Posted - Mar 05 2005 :  05:40:50 AM  Show Profile
prefixes that I use.

m_ member variable
s_ static variable
g_ global variable
p_ passed in variable
out_ out variable
hack_ hack variable/ function that should be removed asap



Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000