<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 12, 2016 at 3:51 PM, Maciej Izak <span dir="ltr"><<a href="mailto:hnb.code@gmail.com" target="_blank">hnb.code@gmail.com</a>></span> wrote:</div><div class="gmail_quote">[...]<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Using WARN OFF for whole module is rather bad, but might be (temporary) the only solution. IIRC FPC has many bugs for switching off warnings / hints especially for generics. Compiler likes to report warnings/hints in specialization place/module (which each of reported warnings was disabled in structure declaration).<br></div></div></div></div></blockquote><div><br></div><div>IIRC FPC has the {$PUSH}/{$POP} switches allowing to enable/disable switches, I would be happy if someone could confirm that.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>TDictionary is very stable and well tested. Feel free to use that structure it definitely should stay without many modifications (generally public interface is stable - compatibility with Delphi). </div></div></div></div></div></blockquote><div><br></div><div>Awesome, I'm going to do it! :-)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>the only candidate to remove is :</div><div><br></div><div>procedure GetMemoryLayout(const AOnGetMemoryLayoutKeyPosition: TOnGetMemoryLayoutKeyPosition)<wbr>; </div></div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>which was used only for testing purposes, thanks to GetMemoryLayout you can see how looks memory layout for each kind of dictionary (we have many memory layouts, even more - we have unique de-amortized cuckoo hashing - <a href="http://arxiv.org/abs/0903.0391" target="_blank">http://arxiv.org/abs/0903.0391</a> declared as THashMap/TFastHashMap).</div></div></div></div></div></blockquote></div><div><br></div><div>Great. Does TDictionary descendant from one of those classes?</div><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>