2014-02-25 5:45 GMT-03:00 Sven Barth <[email protected]>: [...]
> 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 - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
