问题描述
在Delphi 7中,您的记录只不过是分组到一个位置的数据集合。在最近的几个版本中,您可以向其添加公共和私有成员,方法,属性和构造函数,将它们对象更多地对象处理。这个扩展语法中引入了什么版本?
In Delphi 7, you a record was nothing more than a collection of data grouped into one location. In the last few versions, you've been able to add public and private members, methods, properties and constructors to them, treating them a lot more like objects. What version was this extended syntax introduced in?
编辑:如果有人想知道为什么要问,我试图设置一些可以简化的东西通过使用扩展语法,但是我想使它与旧版本的Delphi向后兼容,所以我需要知道要使用哪个IFDEF。
In case anyone wonders why I'm asking, I'm trying to set up something that would be simplified quite a bit by using the extended syntax, but I want to make it backwards-compatible with older versions of Delp so I need to know which IFDEFs to use.
推荐答案
我很确定在Delphi 2006中引入了方法记录。
I'm pretty sure records with methods were introduced in Delphi 2006.
这篇关于什么时候推出了扩展记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!