Use this tag for questions related to the compile time constant, a constant value that is known at compile time.
So, I am working on this class that has a few static constants: public abstract class Foo { ... public static final …
java compile-time-constantWhen I compile the code below, I got these error messages: (Error 1 error C2065: 'M_PI' : undeclared identifier 2 IntelliSense: identifier "…
c++ development-environment compile-time-constantIs it possible to declare a constant Guid in C#? I understand that I can declare a static readonly Guid, …
c# constants guid compile-time-constantThe Java language documentation says: If a primitive type or a string is defined as a constant and the value …
java performance constants final compile-time-constantI have the following code, where I get the error "PHP Fatal Error: Constant expression contains invalid operations". It works …
php class properties syntax-error compile-time-constantI'm well versed in the typical paradigm of: //.h extern const int myInt; //.c, .m, .cpp, what have you const …
c++ objective-c constants header-files compile-time-constantIs it possible to compute pow(10,x) at compile time? I've got a processor without floating point support and slow …
c compile-time-constantI have been looking for answers but could not find anything to make this code run. I get av[1] highlighted …
c static compiler-errors initialization compile-time-constantI've set up some default colors in a C# winforms application like so: readonly Color ERROR = Color.Red; readonly Color …
c# colors compile-time-constantIs there any way of converting an enum into a constant expression? I want my switch operator to choose among …
java compile-time-constant