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
 Change -> to .
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

PatLuja
Tomato Guru

Belgium
416 Posts

Posted - Sep 22 2004 :  04:54:43 AM  Show Profile
Hello all,

We all know the feature that corrects a dot (.) to an arrow (->). But sometimes I wanted to have this the other way around. For instance when I'm working with an arrow a lot, and then use a dot somewhere, I often just type an arrow. Could VA be able to recognise this mistake and correct it (when there is no doubt) to a dot?

(I know this has been mentioned before, but I had to bring it up once more.) Thank you in advance.

With kind regards,
Patrick Luja

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Sep 22 2004 :  5:01:12 PM  Show Profile
reasonable request, and i quite like the idea

case=312

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

Old as dirt
Tomato Guru

USA
246 Posts

Posted - Sep 23 2004 :  3:47:59 PM  Show Profile
I just wish it always changed the dot to an arrow when it should.

Ken
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Sep 24 2004 :  07:02:38 AM  Show Profile
off hand, i have only seen this fail with templates. Ken, do you have other cases where this fails? or is it just templates?

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 - Sep 24 2004 :  09:06:02 AM  Show Profile
It failed for me just a couple of days ago... Thinks what I was doing... It was LPMEASUREITEMSTRUCT, which is a typedef for a pointer. It still offered me the correct suggestions after dot, but didn't change the dot to an arrow.

Experimentation shows that the following fails:
typedef struct foo
{
    int n;
} *LPFOO;

LPFOO lpMyFoo;
lpMyFoo.
Separating out the definition of the struct and the typedef doesn't help:
struct bar
{
    int n;
};
typedef struct bar *LPBAR;  // still wrong
But if the last line is changed to
typedef bar *LPBAR;  // OK now
then it works. I would always write it the last way anyway, but some built-in classes don't, which is how I found the LPMEASUREITEMSTRUCT example in the first place.

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

Old as dirt
Tomato Guru

USA
246 Posts

Posted - Sep 24 2004 :  09:36:49 AM  Show Profile
I use an awful lot of templates so it may be related to that, although it seemed like it was after the 2nd or 3rd pointer in a statement. I will pay more attention to when it happens and see if templates are involved. More than likely there will be because nearly everything is in CArrays.

Ken
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Sep 26 2004 :  6:42:56 PM  Show Profile
Stephen's case has been added

case=321

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

Old as dirt
Tomato Guru

USA
246 Posts

Posted - Sep 30 2004 :  10:53:54 PM  Show Profile
I haven't seen the dot to arrow fail since I've started watching for it when a template wasn't involved. I never noticed the corelation before.

Ken
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