Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-06

class completion and properties with index constant

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi all,

Codetools code completion now support properties with index constant. For example:

program Project1;
type
  TFoo = (one, two, three);
  { TBar }
  TBar = class
  public
    property Something: Boolean index one read GetSomething;
    property Otherthing: Boolean index two read GetSomething;
  end;
begin
end.

This now creates

  private
    function GetSomething(AIndex: TFoo): Boolean;

Mattias

Reply by email