I get frequently frustrated with the lack of constants and enum types. I come from Delphi background where these are used frequently.
I found a way that is helping me with the version 2.50+ when compiling to library option. I create the main class code module, and add another code module only to define in process_globals the constant variables, with 'c' starting on the name.
I name this module with 'const' added to library name, to make more readable.
For those that like creating subs for constants it could be an option also. Since commonly constants are global to the entire source code in almost all languages.
So it will show up even if you do not have the main class created yet.
just my 2 cents.