Re: [fpc-devel] cdecl and constant parameters

2010-04-01 Thread Michael Van Canneyt
On Wed, 31 Mar 2010, Jonas Maebe wrote: On 31 Mar 2010, at 20:01, Seth Grover wrote: The documentation (http://www.freepascal.org/docs-html/ref/refsu56.html) says A constant argument is passed by reference if its size is larger than a pointer. It is passed by value if the size is equal or

[fpc-devel] Re: cdecl and constant parameters

2010-04-01 Thread Seth Grover
Jonas said: I personally think that the documentation should not say anything at all about how const parameters are passed, as this should be an implementation detail that nobody should care about. That said, with cdecl, const has the same meaning as it has in C, which is pass the