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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to