Jump to content

Ref to function used as interface?

Recommended Posts

  ReadOnlyObservable<T> = reference to function: T;
  Observable<T> = interface(ReadOnlyObservable<T>)
  {$REGION 'Property Accessors'}
    procedure Invoke(const value: T); overload;
    procedure Subscribe(const action: TAction<T>; trigger: TNotifyTrigger = AfterChange);

The above is taken from @Stefan Glienke's Knockoff project


Can someone give me some heads up - is this some type of advanced usage of Delphi?   can "reference to functio: T" be used as the base interface?

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now