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) –