Delphi 7 是否支持 inline 关键字?
Does Delphi 7 support the inline keyword?
procedure display;inline;
begin
showmessage('sakthi');
end;
procedure TFrmInline.BtnDisplayClick(Sender: TObject);
begin
display;
end;
在这个程序中,如果我编译它会显示 "declaration expected but inline found".
的错误
Delphi 7 不支持 inline
关键字并且不会内联函数。
内联关键字是在 Delphi 2005 年添加的:
procedure display;inline;
begin
showmessage('sakthi');
end;
procedure TFrmInline.BtnDisplayClick(Sender: TObject);
begin
display;
end;
在这个程序中,如果我编译它会显示 "declaration expected but inline found".
的错误Delphi 7 不支持 inline
关键字并且不会内联函数。
内联关键字是在 Delphi 2005 年添加的: