version(debug)

denizzzka 4denizzz at gmail.com
Sat Oct 6 10:59:41 PDT 2012


Why

version(assert){ int i = 1; } else { int k = 1; }

causes error:
Error: identifier or integer expected, not assert
?

This is bug or feature?
http://dlang.org/version.html says what it is correct code, 
because "assert" in the list of "Predefined Version Identifiers"

How I can solve this problem by other way?


More information about the Digitalmars-d-learn mailing list