https://issues.dlang.org/show_bug.cgi?id=7417

--- Comment #11 from anonymous4 <[email protected]> ---
Minimal implementation with static opDispatch:
---
struct Version
{
    template opDispatch(string s)
    {
        mixin(`version(`~s~`)enum opDispatch=true;else enum
opDispatch=false;`);
    }
}

static if(Version.OSX || Version.linux){}
else{}
---

--

Reply via email to