<p style="padding:0 0 0 0; margin:0 0 0 0;">Hi,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">this seems to be misleading error message. <span style="font-size: 13.3333px;">TFPGObjectList works well for objects (classes). When I tried to push record to it, I got the same error message. TVec3 is not class, right?</span></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"><span style="font-size: 13.3333px;">Vojtěch</span></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: Ryan Joseph <ryan@thealchemistguild.com><br />
> Komu: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org><br />
> Datum: 01.07.2018 01:55<br />
> Předmět: [fpc-pascal] TFPGObjectList error<br />
></p>
I’m trying to use TFPGObjectList but I get an error. Is the unit busted? If so is there another generic list class in the RTL?<br />
<br />
type<br />
TVec3List = specialize TFPGObjectList<TVec3>;<br />
var<br />
list: TVec3List;<br />
begin<br />
list := TVec3List.Create;<br />
list.Add(V3(1,1,1));<br />
list.Free;<br />
<br />
<br />
/usr/local/lib/fpc/3.1.1/units/x86_64-darwin/rtl/fgl.ppu:fgl.pp:992: error: 14: identifier idents no member "Free"<br />
Regards,<br />
Ryan Joseph<br />
<br />
_______________________________________________<br />
fpc-pascal maillist - fpc-pascal@lists.freepascal.org<br />
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>