On 8/13/2016 6:02 AM, Liam McSherry wrote:
For "static if," C# also has a very limited conditional compilation system that
is barely comparable. Symbols can be defined at compile time, but they can't
have values and they can only be used with specific directives:
---
#define X

#if X
    doA();
#else
    doB();
#endif
---

That seems to correspond with D's 'version' construct.

Reply via email to