Questions on returning a pointer to a class with regards to DLL/SO's (exporting pointers)
(I realize you can't export a class yet for FPC) Would returning a pointer to a class (either through a function result, or a function Var (by reference) parameter) allow you to use classes across module boundaries (library/executable). I am going to experiment with this, but even if it works in some odd way, I of course want to know if it would be reliable or just hit and miss. Would a pointer be more efficient or roughly the same in comparison to exporting class? Also, are classes from FPC different binary constructs than the classes from Delphi?.. so you wouldn't be able to use a exported pointer or exported class in a Delphi program from an FPC library? Regards, Lars _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal