2014-02-25 5:45 GMT-03:00 Sven Barth <pascaldra...@googlemail.com>: [...]
> So, which syntax to use generic and meta class? >> > > What might work (untested) is this: > > === code begin === > > type > > generic TMyGeneric<T> = class > public type > TMyGenericClass = class of TMyGeneric; // in mode Delphi this would be > "class of TMyGeneric<T>" > public > class procedure RegisterItem(aItemClass: TMyGenericClass); > end; > > === code end === > > Regards, > Sven > Yyyeeesss buddy, it compiles! I'll continue my implementations this weekend. Generics is really wonderful! :) I will continue my implementations this weekend. Thanks a lot! -- Silvio Clécio My public projects - github.com/silvioprog
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal