IEvent<T> and no generics support

Issue #149 invalid
Arioch The created an issue

in Spring.pas we have the following lines:

{$IFDEF SUPPORTS_GENERIC_EVENTS}
  Event<T> = record
  private
  IEvent<T> = interface(IEvent)
  {$REGION 'Property Accessors'}
    function GetInvoke: T;
    function GetCount: Integer;

So in other words the type Event<T> would not be compiled if compiler does not have generics, but the type iEvent<T> would be compiled even by pre-generics compiler :-)

Guess If-Def guard is to be extended to interface type too

Comments (1)

  1. Log in to comment