Automatically Pointers dereferencing

Elements: 10.0.0.2513
VS: 2019 Community

Hello,

In Delphi, the EXTENDED compilation directive (shortened as X+, and activated by default) allows to “omit” the dereferencing character (^) when using pointer types.

I’m trying to compile a Delphi code that makes massive use of pointers and I couldn’t find a similar option with Oxygene.

I was wondering if I missed something.

type
  TMyRecord = record
    A: Integer;
  end;
  PMyRecord = ^MyRecord
 
method Test;
var
  MyRecordVar: PMyRecord;
begin
  MyRecordVar.A := 10; // FAIL: no member "A" on type "PMyRecord"
end;

Thierry,

I don’t believe we support this, no.

I’ll log a feature request for Delphi Compatibility Mode.

Thanks, logged as bugs://84454

1 Like