Does Delphi 7 support the inline keyword?
Asked Answered
P

1

6
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".

Pauwles answered 17/2, 2017 at 7:0 Comment(0)
I
12

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/

Involuted answered 17/2, 2017 at 7:3 Comment(1)
@sakthivel Welcome to Stack Overflow. If this answers your question and AFAIK it does then please accept it. How does accepting an answer workBuchalter

© 2022 - 2024 — McMap. All rights reserved.