Top "Constants" questions

Constants in programming are definitions whose value is fixed throughout a program's execution.

How can I specify a [DllImport] path at runtime?

In fact, I got a C++ (working) DLL that I want to import into my C# project to call it's …

c# c++ dll constants dllimport
How to initialize a private static const map in C++?

I need just dictionary or associative array string => int. There is type map C++ for this case. But I …

c++ static map initialization constants
Storing integer values as constants in Enum manner in java

I'm currently creating integer constants in the following manner. public class Constants { public static int SIGN_CREATE=0; public static int …

java enums constants
Ruby on Rails: Where to define global constants?

I'm just getting started with my first Ruby on Rails webapp. I've got a bunch of different models, views, controllers, …

ruby-on-rails constants global
Why is there no Constant feature in Java?

I was trying to identify the reason behind constants in Java I have learned that Java allows us to declare …

java constants final
How to declare string constants in JavaScript?

I want to declare string constants in JavaScript. Is there is a way to do that?

javascript constants
How can I get a resource content from a static context?

I want to read strings from an xml file before I do much of anything else like setText on widgets, …

java android static constants android-resources
What is the difference between a static and const variable?

Can someone explain the difference between a static and const variable?

c++ c static constants
Why can't I have "public static const string S = "stuff"; in my Class?

When trying to compile my class I get an error: The constant 'NamespaceName.ClassName.CONST_NAME' cannot be marked static. …

c# constants
Difference between const reference and normal parameter

void DoWork(int n); void DoWork(const int &n); What's the difference?

c++ parameters reference constants