I have a form with a public variable of some type of function pointer, like this:
{...}
interface
  type TExternalFunction = function(var x : TAnotherCustomType): smallint;
{...}
var
  MyExternalFunction : TExternalFunction; 
{...}
implementation
function CreateThisForm():smalint;
begin
  if (Assigned(MyExternalFunction)) then
  begin
    // do something
  end;  
end; 
Do you see any possible problems?
Do I have to explicitly initialize the public function pointer to nil? A Co-Worker suggested initializing the function pointer to nil in the Initialization part of the form, does this make sense?
Thanks in advance
 
    