对DLL版本进行排序的正确方法是什么

时间:2022-09-15 20:21:42

I've always understood that each number in the version (ex: 1.2.3.4) is treated as an regular int value. We are using some third party DLLs that follow a different convention and it seems to be causing problems with our patching process (patch won't overwrite the old DLL with the new one).

我一直都知道版本中的每个数字(例如:1.2.3.4)都被视为常规的int值。我们正在使用一些遵循不同约定的第三方DLL,它似乎导致我们的修补过程出现问题(补丁不会用新的DLL覆盖旧的DLL)。

The old version of the DLL is 1.38 The new version of the DLL is 1.4

旧版本的DLL是1.38新版本的DLL是1.4

I understand things to be 1.4 < 1.38. I would have personally used 1.40. Their claim is that 1.4 == 1.40.

我明白事情是1.4 <1.38。我个人会用1.40。他们的主张是1.4 == 1.40。

I hate making mistakes due to ignorance and I also hate blindly following conventions without understanding the meanings behind them. So it's time for me to ask for clarification. Any views on this?

我讨厌由于无知而犯错误,我也讨厌盲目遵守惯例而不理解其背后的含义。所以现在是我要求澄清的时候了。对此有何看法?

5 个解决方案

#1


The convention is 1.4 != 1.40. Versions are a set of numbers, not a single number. They should have been using 1.3.8 if they wanted to increase to 1.4.

惯例是1.4!= 1.40。版本是一组数字,而不是一个数字。如果他们想增加到1.4,他们本应该使用1.3.8。

#2


Of course, 1.4 is in no way equal to 1.40.

当然,1.4绝不等于1.40。

1.40 is revision fourty, 1.4 is revision four, there are 35 revisions between them.

1.40是修订版四,1.4是修订版四,它们之间有35个修订版。

I can say that Photoshop v.10 is certainly better than Photoshop v.1

我可以说Photoshop v.10肯定比Photoshop v.1更好

#3


Of course it is individual integer values! Think of the nightmare if version numbers were floating point numbers, I mean, with rounding and all that. :P

当然它是单个整数值!想想噩梦,如果版本号是浮点数,我的意思是,使用舍入等等。 :P

#4


It's up to you, but as you've noticed, it's easy for things to get confusing.

这取决于你,但正如你所注意到的,事情很容易让人感到困惑。

In my personal projects, I always numbered with straight integers, never any dots: v1, v2, v3, etc. Kept things simple.

在我的个人项目中,我总是用直线整数编号,从不编号:v1,v2,v3等。保持简单。

#5


I agree with your reading on it. "1.4" == "1.04" < "1.38"

我同意你的阅读。 “1.4”==“1.04”<“1.38”

#1


The convention is 1.4 != 1.40. Versions are a set of numbers, not a single number. They should have been using 1.3.8 if they wanted to increase to 1.4.

惯例是1.4!= 1.40。版本是一组数字,而不是一个数字。如果他们想增加到1.4,他们本应该使用1.3.8。

#2


Of course, 1.4 is in no way equal to 1.40.

当然,1.4绝不等于1.40。

1.40 is revision fourty, 1.4 is revision four, there are 35 revisions between them.

1.40是修订版四,1.4是修订版四,它们之间有35个修订版。

I can say that Photoshop v.10 is certainly better than Photoshop v.1

我可以说Photoshop v.10肯定比Photoshop v.1更好

#3


Of course it is individual integer values! Think of the nightmare if version numbers were floating point numbers, I mean, with rounding and all that. :P

当然它是单个整数值!想想噩梦,如果版本号是浮点数,我的意思是,使用舍入等等。 :P

#4


It's up to you, but as you've noticed, it's easy for things to get confusing.

这取决于你,但正如你所注意到的,事情很容易让人感到困惑。

In my personal projects, I always numbered with straight integers, never any dots: v1, v2, v3, etc. Kept things simple.

在我的个人项目中,我总是用直线整数编号,从不编号:v1,v2,v3等。保持简单。

#5


I agree with your reading on it. "1.4" == "1.04" < "1.38"

我同意你的阅读。 “1.4”==“1.04”<“1.38”