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
 Technical Support
 Add missing case statements - enum struct
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

youaresoomean
New Member

2 Posts

Posted - Jul 13 2020 :  04:33:07 AM  Show Profile  Reply with Quote
Hi,

seems "Add Missing case Statements" only works for enum class, for enum struct, the scope is missing in generated code.

Any chance this might be fixed in a future release?

Thanks alot!

feline
Whole Tomato Software

United Kingdom
16778 Posts

Posted - Jul 13 2020 :  08:51:33 AM  Show Profile  Reply with Quote
You are quite right, I had not thought to test this case, but the bug is easy to see when you check it:

case=142461

Do you use "enum struct" often in your code? This is the first time I think any of our users have mentioned doing this.

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

youaresoomean
New Member

2 Posts

Posted - Jul 13 2020 :  10:23:24 AM  Show Profile  Reply with Quote
Yes, i use "enum struct" all the time - but i suspect i am a minority.
Since enum classes are still POD types i dont like to use "class" with them :)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
16778 Posts

Posted - Jul 14 2020 :  05:33:31 AM  Show Profile  Reply with Quote
POD types? I don't recognise this term, but an enum class seemed strange to me the first time I came across it, since enum and class seemed rather different concepts.

For now, if you have VA Suggestions enabled, then typing "case " inside your switch statement should produce a VA suggestion for the fully qualified enum struct, allowing you to quickly filter down to the one you want.

Not the same, but hopefully helpful for now. Especially since the refactoring will fill in the missing case lines for you, so you can see which lines you want to update.

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:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000