今天偶然在vcl代码中看到一种语法:
TObjectHelper = class helper for TObject
以前竟然没有注意到class helpers,唉:
A class helper is a type that - when associated with another class - introduces additional method names and properties which may be used in the context of the associated class (or its descendants). Class helpers are a way to extend a class without using inheritance. A class helper simply introduces a wider scope for the compiler to use when resolving identifiers. When you declare a class helper, you state the helper name, and the name of the class you are going to extend with the helper. You can use the class helper any place where you can legally use the extended class. The compiler's resolution scope then becomes the original class, plus the class helper. Class helpers provide a way to extend a class, but they should not be viewed as a design tool to be used when developing new code. They should be used solely for their intended purpose, which is language and platform RTL binding.
Class Helper Syntax The syntax for declaring a class helper is:
type
identifierName = class helper [(ancestor list)] for classTypeIdentifierName
memberList
end;
The ancestor list is optional. A class helper type may not declare instance data, but class fields are allowed. The visibility scope rules and memberList syntax are identical to that of ordinary class types. You can define and associate multiple class helpers with a single class type. However, only zero or one class helper applies in any specific location in source code. The class helper defined in the nearest scope will apply. Class helper scope is determined in the normal Delphi fashion (i.e. right to left in the unit's uses clause).
昨天装了一下delphi8 for.net 感觉没有太失望
vcl.net还是挺让人欣慰的,程序结构和继承了delphi for win32,比如还可以看到全局变量 :)
indy得到了继续支持,ECO得到了更多的控制能力,但多线程支持好像还不行
vcl form中可以使用.net component,wrapper一下就行了
不过还是有些遗憾:
1、不太稳定,占用资源太大
2、没有封装remoting,开发出来multi-tier组件,毕竟remoting的rap开发还不是很方便
当然,还有不少东东,大家可以看看去~~~~

http://www.delphiun.com