The following outputs "Unicode!". If I reverse the comment for [1] and [2] however, the output is "ASCII".

file a:
================================
module A;

version = Unicode;  [1]

version(Unicode)
{
        alias ChoiceA Choice;
}
else
{
        alias ChoiceB Choice;
}

string ChoiceA() { return "Unicode!"; }

string ChoiceB() { return "ASCII"; }


file b:
================================
module B;

import std.stdio: writeln;
import A;

//version = Unicode; [2]

static this()
{
        writeln(Choice());
}

void main(){}


==========
experience = GetExperience();
assert(experience == "tyro")

Reply via email to