Re: enum, immutable or const for run-time constants?

2015-01-26 Thread ketmar via Digitalmars-d-learn
On Mon, 26 Jan 2015 20:04:58 +, Nordlöw wrote: > What's the preferred way of declaring run-time constant values in D from > the point of view of > > 1, compile-time performance 2. run-time performance 3. code-size 4. > load-time 5. locality of reference module global or function global > (st

enum, immutable or const for run-time constants?

2015-01-26 Thread Nordlöw
What's the preferred way of declaring run-time constant values in D from the point of view of 1, compile-time performance 2. run-time performance 3. code-size 4. load-time 5. locality of reference module global or function global (static)