Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Refactoring - add explicit enum values

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
muxecoid Posted - Jun 17 2020 : 04:24:35 AM
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,
};
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jun 18 2020 : 08:34:42 AM
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
muxecoid Posted - Jun 18 2020 : 03:10:42 AM
Multiple ranges with gap.

Obviously single range with no gap is a special case of multiple ranges with gap (gap size is zero :P )
feline Posted - Jun 17 2020 : 08:48:09 AM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000