[fpc-pascal] constref question

José Mejuto joshyfun at gmail.com
Sat Mar 5 18:29:25 CET 2011


Hello FPC-Pascal,

Saturday, March 5, 2011, 12:24:24 PM, you wrote:

>> it fails with a sigsegv. Are both expected to have the same behavior
>> in this case ? (pointer to record).
JM> "constref" is basically the same as "var" as far as passing
JM> the parameter is concerned. That means that in the case above, you
JM> are passing a pointer to a pointer to a record. If you just want a
JM> pointer to a record, use this:

Ok, that's 100% clear. I'm passing a pointer to a record based in the
XPIDL description and sometimes is quite difficult to interpret how a
parameter should be defined based in the IDL description as it is
quite C centric instead platform agnostic.

When no modifier is applied (var, const,...) the behavior is
deterministic or can change from platform to platform, or by ABI ?

-- 
Best regards,
 José




More information about the fpc-pascal mailing list