[fpc-pascal] readonly variables

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Nov 30 10:46:47 CET 2009


On 30 Nov 2009, at 10:29, Marco van de Voort wrote:

> In our previous episode, Anthony Walter said:
>> Martin Schreiber also chimed in, pointing out:
>> 
>> http://bit.ly/6uaAiB
>> 
>> "Larger sets, records, and static arrays are passed as 32-bit pointers
>> to the value."
>> 
>> The documentation is unambiguous there. Claiming that it doesn't have
>> anything to say on the subject is patently false.
> 
> As per what? OS ABI? Delphi rules?

As per the linked Delphi documentation. But as has mentioned before, the Delphi documentation doesn't match its implementation in case of cdecl and const records (of course, this sort of things never happen with FPC :). Can we close this topic now?


Jonas


More information about the fpc-pascal mailing list