On 2010-12-14 19:46, Extrawurst wrote:
Hi i just want to discuss two points about D version statements.1) Why is it not possible to negate the condition of a version statement. I think it is unintuitive and keeps me writing weird statements like: version(Win32){}else{version = NotWin32;}
That has been suggested many times before, If I recall correctly Walter doesn't like it. You could use bool constants and static if instead to get the behavior you want. It's ugly but it works, here you have most of the predefined version statements as bool constants: http://dsource.org/projects/dstep/browser/dstep/internal/Version.d
2) I would really like the idea to be able to get a compiletime string of version identifiers in some kind of way. Perhaps even an array of version-strings. Any thoughts on that ? Regards, Stephan
-- /Jacob Carlborg
