Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-09

Possible to set an object function/procedure to external?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Haines

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

Reply by email