---- enum MemoryManagementPolicy { gc, rc, mrc } immutable gc = ResourceManagementPolicy.gc, rc = ResourceManagementPolicy.rc, mrc = ResourceManagementPolicy.mrc;
auto RMP = gc; ---- and in my code: ---- RMP = rc; string str = "foo"; // compiler knows -> ref counted // ... RMP = gc; string str2 = "bar"; // normal behaviour restored ----