Why are there so many $IF DEFINED(CLR) in the VCL/RTL?

六眼飞鱼酱① 提交于 2019-11-28 02:28:24

问题


I've just compared the Delphi 2009 VCL/RTL code to the 2010 one.

I noticed that there are many $IF DEFINED(CLR) conditional defines and they got more in the 2010 version.

I thought that these conditional defines have fall into disuse, since Delphi .NET has been discontinued. The VCL/RTL aren't really used in Delphi Prism? Or are they?


回答1:


We're still using Delphi.NET internally for parts of the IDE and for some of the .NET versions of DBXpress delivered with Delphi Prism. Because of that, we're maintaining the CLR portions insofar as what is needed by those parts of the product. We're also actively reworking things to reduce and eventually eliminate our own dependence on Delphi.NET.

I suppose we could have stripped those portions of the code out...



来源:https://stackoverflow.com/questions/2210122/why-are-there-so-many-if-definedclr-in-the-vcl-rtl

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