Hello FPC-Pascal,

The parameter passing mode "constref" ensures that something is passed
as reference and never as value, so my question is using something
like this:

type
  pmyrec=^myrec;
  myrec=record
    a: integer;
    b: integer;
    c: integer;
  end;

  MyInterf = interface
  [....]
    procedure test(const param: pmyrec); safecall;
  end;

Calling test is ok, but if I define test as:

  MyInterf = interface
  [....]
    procedure test(constref param: pmyrec); safecall;
  end;

it fails with a sigsegv. Are both expected to have the same behavior
in this case ? (pointer to record).
  
-- 
Best regards,
 José

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to