M
M
Mercury132017-11-01 00:08:54
Delphi
Mercury13, 2017-11-01 00:08:54

What version of Delphi introduced helpers?

Actually a question.

type
    TMyClassHelper = class helper for TMyClass
      procedure HelloWorld;
      function MyFunc: Integer;
    end;
 
    ...
 
    procedure TMyClassHelper.HelloWorld;
    begin
       Writeln(Self.ClassName); // Self refers to TMyClass type, not TMyClassHelper
    end;
 
    function TMyClassHelper.MyFunc: Integer;
    begin
      ...
    end;

In what version of Delphi did all this appear? Is it in XE2 or not?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2017-11-01
@Mercury13

I answer myself again. XE3.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question