Global variables read at compile time?
Ali Çehreli
acehreli at yahoo.com
Wed Aug 15 09:19:24 PDT 2012
On 08/15/2012 06:55 AM, d_follower wrote:
> On Wednesday, 15 August 2012 at 13:41:10 UTC, RommelVR wrote:
>> Make a an enum, const or otherwise immutable.
>
> I don't think you understood the question.
I thought RommelVR did understand the question. Try this:
import std.stdio;
enum a = "a";
string b = a;
void main()
{
writeln(b);
}
Ali
--
D Programming Language Tutorial: http://ddili.org/ders/d.en/index.html
More information about the Digitalmars-d-learn
mailing list