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
 coloring for constexpr
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mordachai
Tomato Guru

USA
224 Posts

Posted - Jul 13 2018 :  09:48:16 AM  Show Profile  Reply with Quote
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).

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Jul 13 2018 :  11:03:21 AM  Show Profile  Reply with Quote
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

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

Mordachai
Tomato Guru

USA
224 Posts

Posted - Jul 13 2018 :  1:43:30 PM  Show Profile  Reply with Quote
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.
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