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
 Refactoring - add explicit enum values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

muxecoid
New Member

Israel
4 Posts

Posted - Jun 17 2020 :  04:24:35 AM  Show Profile  Reply with Quote
Transform this
enum Stuff {
  Foo = 0,
  Bar,
  Baz,
  
  Cat = 100,
  Dog,
};


into this

enum Stuff {
  Foo = 0,
  Bar = 1,
  Baz = 2,
  
  Cat = 100,
  Dog = 101,
};

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Jun 17 2020 :  08:48:09 AM  Show Profile  Reply with Quote
A good idea. In this example are there "many" missing items in the blank line between "Baz" and "Cat", or are you thinking of having VA produce two different number ranges in the same enum?

I just want to be clear on how you are picturing this working.

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

muxecoid
New Member

Israel
4 Posts

Posted - Jun 18 2020 :  03:10:42 AM  Show Profile  Reply with Quote
Multiple ranges with gap.

Obviously single range with no gap is a special case of multiple ranges with gap (gap size is zero :P )
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Jun 18 2020 :  08:34:42 AM  Show Profile  Reply with Quote
Makes sense, I just wanted to make sure I understood correctly I have put in a feature request to see what our developers make of this:

case=142383

zen is the art of being at one with the two'ness
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