[fpc-pascal] cdecl calling and const parameters - was SizeOf(File) <> SizeOf(FileRec)

Jonas Maebe jonas at zeus.ugent.be
Wed May 25 09:40:57 CEST 2005


On 25 mei 2005, at 09:29, Søren Ager wrote:

> I am programming in Pascal so I can't see what C has to do with it ;-) 
> I am only interested in changing the caling convention - not the 
> meaning of the const which should be the same as var - with the 
> exception that you are not allowed to change the parameter

No, const does not mean the same as var. For example, a "const a: 
longint" parameter is passed by value.


Jonas





More information about the fpc-pascal mailing list