|
From: Hans-Peter D. <DrD...@ao...> - 2009-01-17 08:38:13
|
Thomas Hummes schrieb: >>> This is not really correct. To use e.g. a generic TObjectList you >>> need to include the unit "Generics.Collections" and may then write >>> something like: >>> >>> type TMyList = TObjectList<TStringList>; >>> >>> This creates a generic descendant of TObjectList containing >>> TStringLists. Is this really correct? I've added this construct to the test unit. > I attached a test unit with all basic samples needed to use existing > generics. Thanks :-) I've updated the parser, and added your unit to the test directory (everything only in the PasDoc2 branch). The <...> part is added to the declaration, but not to the ancestor list. BTW, I had some hardware problems (rapidly extending disk failures), and have moved my PasDoc VM to another drive. This problem prevented me from finishing a distribution of PasDoc2 for Christmas. Today SVN found some conflicts, which I hope to have fixed now. I'm also familiarizing with Lazarus, perhaps I can port the D7 GUI to Lazarus in the next time (months). DoDi |