The Programming Works – Delphi interfaces are usually implemented by objects, but that is not necessary. Like you can implement a COM interface in pure C, you can implement a Delphi interface (which follows COM specifications in general) in pure Pascal without using objects. To demonstrate the technique let us consider the following example: unit CalcIntf; interface type ICalculator = interface procedure Clear; procedure Add(AValue: Integer); procedure Sub(AValue: Integer); function GetAccumulator: Integer; end; implementation end. Here is a standard Delphi implementation of ICalculator ...
Visits by Source
Users who voted for this posting