[fpc-devel] constref in Windows

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Nov 19 17:47:24 CET 2010


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



More information about the fpc-devel mailing list