从技术角度解释为什么微软没有使用 Windows 9

jopen 9年前

众所周知,微软对Windows的命名规则一直很诡异,从XP,Vista,7到8和8.1 一直到最新的Windows 10。那么从技术角度考虑,为什么微软跳过了9而直接使用10呢?据微软内部开发人员流传,是为前操作系统的版本号考虑。

从技术角度解释为什么微软没有使用 Windows 9

从技术角度解释为什么微软没有使用 Windows 9

实例代码如下

if ( version.StartsWith("Windows 9") )

{ /*Windows 95, Windows 98 */

} else{

}

当软件开发人员使用:“ 如果 版本号开始于xxx,就 执行yyy" 时,会出现两种情况的正确判断

Windows 9

Windows 9* ( Windows 95 Windows 98 )   95和98也是开头包含Windows 9的

综上所述,在早期测试时,微软发现很多第三方软件开发商使用了如上的方法去判断操作系统,这样会造成对当在Windows 95和 Windows 98上运行使用上述代码的程序时,程序会误判为WIndows "9"。

所以微软开发者为了避免出现这种不稳定因素,只好命名为Windows 10 。


从技术角度解释为什么微软没有使用 Windows 9

觉得怎么还会这么写代码的?甲骨文还真的在openJDK里这么写了。

http://cr.openjdk.java.net/~simonis/webrevs/8024854.v3/test/java/lang/ProcessBuilder/Basic.java.sdiff.html

第602行

同样的写法竟然还有大名鼎鼎的jEdit编辑器!‍

从技术角度解释为什么微软没有使用 Windows 9

https://searchcode.com/codesearch/view/1393856/

第48行

载自: http://www.cnbeta.com/articles/333537.htm