[fpc-pascal] The new Delphi 2010 RTTI

Anthony Walter sysrpl at gmail.com
Wed Dec 22 16:13:10 CET 2010


Thanks for working on adding methods and visibility to record types. Could
you also look into fixing generics? That is, to allow for generic
constraints and remove the redundant generic and specialize keywords. For


  TList<T> = class { ... interface code ... }  end;
  TIntegerList = class(TList<Integer>) end;
  TObjectList<T: TObject> = class(TList<T>) end;

  Dates: TList<TDateTime>;
  Integers: TIntegerList;
  Threads: TObjectList<TThread>;


Note the lack of redundant generic and specialize keywords. It is obvious
the type is generic by virtue of the <> angle brackets after the type
identifier. Also notice the type constraint after T in the object list type

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20101222/63ead64e/attachment.html>

More information about the fpc-pascal mailing list