Closed ollydev closed 3 years ago
Allows assignment of non-object methods to object method callbacks.
function Test: String; begin Result := 'Hello world'; end; var Callback: function: String of object; begin Callback := @Test; WriteLn Callback(); // Hello world end;
Allows assignment of non-object methods to object method callbacks.