Re: [fpc-devel] Creating Generic Object

2018-04-16 Thread Sven Barth via fpc-devel
Bart schrieb am Mo., 16. Apr. 2018, 12:18: > On Mon, Apr 16, 2018 at 7:53 AM, Sven Barth via fpc-devel > wrote: > > >> This is very nice feature since I do not need define every Map/List/etc > >> as a separate type. > > > Just declare a

Re: [fpc-devel] Creating Generic Object

2018-04-16 Thread Bart
On Mon, Apr 16, 2018 at 7:53 AM, Sven Barth via fpc-devel wrote: >> This is very nice feature since I do not need define every Map/List/etc >> as a separate type. > Just declare a type for the specialization: The obvious (and correct answer) but, this is

Re: [fpc-devel] Creating Generic Object

2018-04-15 Thread Sven Barth via fpc-devel
Amir schrieb am So., 15. Apr. 2018, 23:51: > Hi all, > >Currently, FPC allows declaring objects as > var >MyMap: specialize TFPGMap; > > This is very nice feature since I do not need define every Map/List/etc > as a separate type. > > But to create

[fpc-devel] Creating Generic Object

2018-04-15 Thread Amir
Hi all,   Currently, FPC allows declaring objects as var   MyMap: specialize TFPGMap; This is very nice feature since I do not need define every Map/List/etc as a  separate type. But to create MyMap object, one has to write something like:   MyMap := (specialize