4
procedure display;inline;
begin
showmessage('sakthi');
end;
procedure TFrmInline.BtnDisplayClick(Sender: TObject);
begin
display;
end;
在这个程序中,如果我编译它显示错误,“声明预期但内联发现”。Delphi 7是否支持inline关键字?
procedure display;inline;
begin
showmessage('sakthi');
end;
procedure TFrmInline.BtnDisplayClick(Sender: TObject);
begin
display;
end;
在这个程序中,如果我编译它显示错误,“声明预期但内联发现”。Delphi 7是否支持inline关键字?
德尔福7不支持inline
关键字,不会内联函数。
在Delphi 2005中添加了inline关键字:https://stackoverflow.com/a/8460108/
感谢您的回复。 –
@sakthivel欢迎来到Stack Overflow。如果这回答你的问题和AFAIK它然后请接受它。 [如何接受答案工作](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) –