Delphi for .NET语法做了许多改动(0分)

  • 主题发起人 wr960204
  • 开始时间
W

wr960204

Unregistered / Unconfirmed
GUEST, unregistred user!
delphi for .net 对语法做了大量修改,例如
1、支持名称空间
可以使用
uses Borland.Delphi.SysUtils;这样的语法
2、类型嵌套
type
TMyClass = class
Fdata: Integer;
const foo = 12;
type TNestedClass = class
procedure Hello;
end;
procedure Green;
end;
3、属性编程
type
[ FooAttribute('Hello', 23) ]
TMyClass = class
[ SpecialDataAttribute ]
Fdata: Integer;
[ WebMethod, DebuggerStepThrough ]
function SampleCount: Byte;
end;
3、广播式事件模型(Multicast events)
支持delegate关键字
由于改动太多,大家自己看吧
http://bdn.borland.com/article/0,1410,28972,00.html
 
[blue]good[/blue]
 
是该支持广播事件模型。
 
接受答案了.
 
顶部