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
 Technical Support
 Class instance completions
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

oxymoron
New Member

United Kingdom
4 Posts

Posted - Jul 22 2004 :  04:04:22 AM  Show Profile
Suppose I write the following

class MyClass { /*...*/ };
static MyClass s_Instance;

Whenever I type "s_I", VA (helpfully) suggests "s_Instance", but when I accept, it (unhelpfully) inserts "s_Instance()" and (grrrr!) it takes _3_ backspaces to remove the brackets for some reason. This has happened for some time - could do with being fixed.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jul 22 2004 :  12:13:31 PM  Show Profile
copying your example in to a .h file (programming in C++) i am unable to reproduce this. i get a suggestion listbox:
http://www.wholetomato.com/products/features/suggestion.html?more=yes
and when i accept s_Instance i get s_Instance, with no brackets.

what IDE and language are you using?

do you get this problem with this actual code example? or are you using an actual class with members?

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

support
Whole Tomato Software

5566 Posts

Posted - Jul 22 2004 :  7:05:17 PM  Show Profile
Does s_Instance exist anywhere else as a function or method?

You might try Ctrl+Z to undo the ().

You might consider disabling the "Insert ()..." option. It is not our favorite. Great idea. Impossible to get right for every case of editing.

Edited by - support on Jul 22 2004 7:05:43 PM
Go to Top of Page

oxymoron
New Member

United Kingdom
4 Posts

Posted - Jul 23 2004 :  10:09:51 AM  Show Profile
Yikes. My toy example doesn't do what is happening in my larger codebase! I am now busy trying to work out the necessary and sufficient conditions for this to happen.

quote:
Does s_Instance exist anywhere else as a function or method?



No - the 's_' is a deliberate policy to avoid that sort of clash.

quote:
what IDE and language are you using?



C++, VS.NET Version 7.1 with Xbox extensions, VAssist X (latest).
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