On 19 Nov 2010, at 17:38, Jonas Maebe wrote:

On 19 Nov 2010, at 17:18, Paul Ishenin wrote:

Can const = constref on stdcall convention?

Only on Windows, because on other platforms that would change the meaning of existing stdcall routines (and on all non-i386 platforms, the default calling convention is pocall_stdcall).

Well, it could be done since "const" is implementation-dependent, but it would force all non-x86 platforms to pass all const parameters by reference by default, which may not be desirable from an efficiency point of view.


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to