Author |
Topic |
|
20thCenturyBoy
Junior Member
Australia
11 Posts |
Posted - Dec 10 2004 : 10:31:41 PM
|
Subject says it really. Eg if I type:
c.begin() Code completion correctly inserts c.begin() but leaves the cursor in between the brackets, even though begin() takes no arguments, and I have to always right-arrow to move past the right-hand bracket. It really breaks up the flow of typing.
VA obviously can tell if a function takes any arguments or not, so could it be changed to only place the cursor in between brackets if a function takes arguments, and past the brackets if the function takes no arguments?
20thCB |
|
support
Whole Tomato Software
5566 Posts |
Posted - Dec 11 2004 : 12:21:38 PM
|
If you *type* a left paren, VA X inserts a right paren but does not move the caret. This is by design. You can type a right paren yourself -- VA X will overwrite the inserted one.
If you select a method from a members listbox, i.e. after typing dot, VA X inserts parens and places the caret inside the parens if the method takes an argument. If no argument, VA X places the caret after the right paren. If a method is overloaded and at least one variant takes an argument, VA X places the caret between parens.
Is your "begin" overloaded? Place the caret on the method and check the dropdown arrow at the right of our Definition field. |
|
|
20thCenturyBoy
Junior Member
Australia
11 Posts |
Posted - Dec 12 2004 : 05:19:36 AM
|
It's the STL begin() for containers. It has no arguments. The same thing happens with end(). I'm using VAX 10.0.1278. It definitely doesn't work as you describe.
20thCB |
|
|
rblondeau
Tomato Guru
Canada
102 Posts |
Posted - Dec 12 2004 : 4:42:04 PM
|
This is not a new problem. It's been around for quite a while and has been discussed at length in previous posts.
Whenever I use the STL (usually with the begin and end methods) I get inconsistent results with where the cursor is placed. Sometimes it's between the parentheses and sometimes is after the closing parenthesis. |
|
|
20thCenturyBoy
Junior Member
Australia
11 Posts |
Posted - Dec 13 2004 : 03:32:23 AM
|
Heh. For me it's always in between the brackets which is ruddy annoying! Ah well, I can live with it for the time being, but I jope it's on the todo list
20thCb |
|
|
feline
Whole Tomato Software
United Kingdom
19024 Posts |
Posted - Dec 13 2004 : 3:02:58 PM
|
begin and end are overloaded, since they return either a normal iterator or a const iterator. since there is an overload VAX places the caret between the brackets.
irritating i know. at least knowing there is a reason, even if this is a bug, helps
case=293 |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|