Consider the following unit and library:
unit support;
{$mode objfpc}{$H+}
type
TSomeList = specialize TFPGList<some_type>;
library a_dll_for_delphi_developer;
{$mode delphi}{$H+}
uses
support;
function DoSomething: TSomeType;
exports
DoSomething;
end.
Now, if I change the directive in the unit to {$mode delphi}{$H+} (which for my purpose seems the most sensible thing to do), the compiler rejects the identifier "specialize". So, I change the directive back to objfpc mode and create the .dll. My question is: will the Delphi developer be able to use this library without problems?