Make TUserDefinedFunction to implement interface IUserDefinedFunction

Hi,

Was wondering if possible for TUserDefinedFunction to implement an interface (IUserDefinedFunction). It might be easier to package/bundle functions as appropriate through dlls.

type
IUserDefinedFunction=interface
function Evaluate(const arguments: TUdfEventArgs; const parameters: TFormulaValueArray): TFormulaValue;
end;

This might require some work though regarding the arguments (TUdfEventArgs, TFormulaValueArray, TFormulaValue)...

in the dll, can then do something like:

function createMyUdf : IUserDefinedFunction; stdcall;

exports
createMyUdf;