User talk:Nhollm

From Lazarus wiki
Jump to navigationJump to search

Hi NHolm

I see you're preparing a page about TDictionary: nice.


A bit of nitpicking.
I saw a snippet that makes me itch a little ;-)

WriteLn('Items in Dictionary: ', IntToStr(MyDictionary.Count));

I see this a lot.
writeln can handle writing integers by itself (it can write almost all basic types, including enums), so the conversion to string is superfluous.
So this would suffice:

WriteLn('Items in Dictionary: ', MyDictionary.Count);

Bart (talk) 12:02, 28 December 2024 (CET)