Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 coloring for constexpr

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
Mordachai Posted - Jul 13 2018 : 09:48:16 AM
Enums and preprocessor macros are currently lumped together for coloring.
Variables seems to include constexprs - which seems wrong to me. You cannot change the value of a constexpr - it's rather more like enum or #define than it is like a variable, static or local.

So I'd rather see constexprs and enum values handled with one common color, and #define could be that or could be its own thing. Either would work for my world.

But having constexprs as variables is just not-right. It's not really what they are (even const variables can be changed - have a memory address, whereas constexpr is little more than a type'd #define).
2   L A T E S T    R E P L I E S    (Newest First)
Mordachai Posted - Jul 13 2018 : 1:43:30 PM
Great! Hope that goes through.

Again, I don't mind the #defines and enums having same color - small potatoes - but would prefer that constexpr get lumped into whatever bin the enums exists in - it's just a processor symbol - it has no inherent existence of its own.
feline Posted - Jul 13 2018 : 11:03:21 AM
We are considering colouring enums and #defines separately, rather than lumping them together. Adding constexp to this makes sense, and I have put a note onto the case about this:

case=82485

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