Re: Re[2]: [fpc-pascal] constref question

2011-03-07 Thread leledumbo
> When no modifier is applied (var, const,...) the behavior is > deterministic or can change from platform to platform, or by ABI ? Deterministic. Pointer based values (Classes, Interfaces) are passed by reference. Others are by value. An exception to Ansi- and Wide- Strings, they're passed by re

Re[2]: [fpc-pascal] constref question

2011-03-05 Thread José Mejuto
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