[fpc-devel] FPC 2.2.3 i386-darwin snapshot

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Mar 8 17:51:32 CET 2009


On 08 Mar 2009, at 14:06, dmitry boyarintsev wrote:

> Is there any actuall use of cdecl object methods?

The problem is not the cdecl, but the static. And the use of these  
methods (with both static and cdecl) is that they behave exactly the  
same as regular C functions/procedures as far as parameter passing is  
concerned, so you need them currently if you want to declare a method  
as part of a class that can be passed as call back to C/Objective-C  
code (see e.g. pascocoa/examples/texteditor/mytoolbar.pas)


Jonas



More information about the fpc-devel mailing list