将"Ex"添加到函数/方法名称是什么意思? [英] What does it mean when `Ex` is added to a function/method name?
问题描述
我使用Windows API的方式不多,但是我已经看到Windows API在这里使用以及偶尔在工作中的代码库中使用.
I don't work with the Windows API much, but I've seen it used there as well as occasionally in a codebase here at work.
推荐答案
是的,他们希望改进(扩展)API并保留一个相似的名称,以便程序员可能会迁移到新版本.
Yup, they wanted to improve (Extend) the API and keep a similar name so it was likely that the programmer would move to the new version.
GetVersionEx()可以获取Windows版本,这是令人讨厌的鸡肉和鸡蛋问题.
Notable is GetVersionEx() to get the Windows version, pretty painful for a while with a nasty chicken-and-egg problem.
记录保持者是国家语言支持团队,他们拥有多个ExEx版本,例如EnumCalendarInfoExEx.毫不奇怪,文化的发展速度甚至比软件还要快.到目前为止还没有ExExEx.
The record keeper is the National Language Support team who have several ExEx versions, like EnumCalendarInfoExEx. Unsurprising, culture moves even faster than software. No ExExEx as of yet.
这篇关于将"Ex"添加到函数/方法名称是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!