What does it mean when `Ex` is added to a function/method name?

江枫思渺然 提交于 2019-12-03 05:32:50

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.

Notable is GetVersionEx() to get the Windows version, pretty painful for a while with a nasty chicken-and-egg problem.

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.

It's usually done as a way of changing the parameters to a function in an API without breaking existing client code. Old code can continue to use the previous version, while new code can take advantage of the new features offered by the Ex version.

It's a naming convention that simply indicates the function is an extended version of an original.

Not sure but I guess it stands for extended.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!