Hacker News new | ask | show | jobs
by captainmuon 1778 days ago
None of the native APIs return the version number as a string, and to see a version > Vista you need to declare the minimum supported version anyway. But I can see this being a problem in some scripted languages, maybe.

Personally I believe they wanted to avoid Windows NEIN, or it's some marketing BS to jump a number and pull up to OS X (10).

1 comments

I think that concern was mostly apocryphal, but such things demonstrably do exist [1]:

    } else if (osName.startsWith("Windows")) {
        if (osName.indexOf("9") != -1) {
            jvm = WINDOWS_9x;
[1] https://github.com/Elblonko/kepler/blob/48618dc2233781656e63...