[fpc-devel] Possible to set an object function/procedure to external?

Andrew Haines AndrewD207 at aol.com
Tue Sep 13 04:31:18 CEST 2011


Hi,

Is it possible to set a object/class procedure/function to external?

I want to do something like this:

TGObject = object
  function new: PGObject; cdecl; external 'libglib.so' name 'g_object_new';

There are other cases where this maps better (i'm ignoring the 'self'
parameter in this example).

Regards,

Andrew



More information about the fpc-devel mailing list