<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-01-27 12:07 GMT+01:00 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span>:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">
On Wed, 27 Jan 2016, Juha Manninen wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Yes, that is about your Generics.Collections compatibility.<br>
I was more interested why fcl-stl is not Delphi compatible while many<br>
other libraries provided by FPC project are.<br>
</blockquote>
<br></span>
It was donated by someone early on during the implementation of generics. I don't think the comparable Delphi units existed at the time. I think the implementation was more based on C++ templates/generics than on comparable<br>
C# or Delphi functionality (hence the name stl: Standard Template Library).</blockquote><div><br></div><div>Delphi Generics.Collections exist since Delphi 2009. fpc-stl was introduced around 2012</div><div><br></div><div class="gmail_quote"><div>FPC generics implementation was very buggy, was almost impossible to implement compatible version, and there was lack of Generics.Defaults comparable functionality (which is base for any collection - especially <span style="font-size:12.8px">_LookupVtableInfo function</span>). More info about <span style="font-size:12.8px">_LookupVtableInfo</span><span style="font-size:12.8px"> </span> :</div><div><br></div><div><a href="http://stackoverflow.com/questions/17951412/what-does-the-default-tarray-sort-comparator-actually-do-and-when-would-you-use">http://stackoverflow.com/questions/17951412/what-does-the-default-tarray-sort-comparator-actually-do-and-when-would-you-use</a></div><div><br></div><div>Development process of Generics.* takes almost 2-3 years (most of time takes to create bug reports and finding workarounds... Even now I have a lot of not reported generics bugs). Without Sven cooperation whole investments would be impossible :).</div></div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best regards,<br>Maciej Izak</div></div></div>
</div></div>