Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Delphi 7 support the inline keyword?

procedure display;inline;
begin
  showmessage('sakthi');
end;

procedure TFrmInline.BtnDisplayClick(Sender: TObject);
begin
  display;
end;

In this program if i compile it shows the error that "declaration expected but inline found".

like image 920
sakthi vel Avatar asked Feb 17 '17 07:02

sakthi vel


1 Answers

Delphi 7 has no support for the inline keyword and will not inline functions.

The inline keyword was added in Delphi 2005: https://stackoverflow.com/a/8460108/

like image 98
David Heffernan Avatar answered Nov 15 '22 04:11

David Heffernan