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
 Semicolon inside function clause
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Jun 28 2009 :  4:29:37 PM  Show Profile  Reply with Quote
Quite often I want to put a semicolon at the end of the line - immediately. This requires quite much work as it is now.

Consider this feature:
[code]void foo(int a, int b) {}

1) I type foo( and VAX produces:
foo(|)
2) I type 10,20;
foo(10,20|); <-- VAX puts the semicolon here!

A semicolon is never valid in this context (unless inside a string). Hence, this feature makes perfect sense. You can move on to other parts of the code, without having to add that stupid semicolon.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 29 2009 :  02:59:47 AM  Show Profile  Reply with Quote
We are considering doing something like this:

case=296
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Jun 29 2009 :  09:44:58 AM  Show Profile  Reply with Quote
Similarly, when typing '{':

foo(bar|) <-- '{' yields:

foo(bar)
{
    |
}
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Jun 29 2009 :  09:46:07 AM  Show Profile  Reply with Quote
Forget that. I just remembered this is (afaik) valid syntax:
foo({1,2});
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000