On 9/27/2013 6:36 PM, Walter Bright wrote:
On 9/27/2013 5:28 PM, "Luís Marques" <[email protected]>" wrote:
BTW, I have for more than once wondered why there was no way to specify more
than one version identifier (is there?), like this:
version(Windows, OSX)
{
For the reason you mentioned earlier. If you are changing the OSX values, you'll
likely mess up the Windows ones.
I've been at this for 30 years, and am quite fed up with the bugs from attempts
to save a few keystrokes. The practice of separating the os sections into
distinct ones has been a big win in reliability.
And, of course, as you discovered, when they are defaulted they are usually
wrong, and they are wrong in a most pernicious, hard to discover way. The code
looks right, and may even sort of behave itself. The only way you can tell if
it's wrong is to laboriously and tediously go through the system's .h files.