I was in total awe today when I found out that there can be more than one default array property in a single class. And I thought that I know everything about Object Pascal!
I also come across a great way to use records and Implicit operator.
And what's the best - I learned both things in a single blog entry - Overloading array properties in Delphi/Win32! Recommended!
I also found about this recently. It works in Delphi 2006 (I'm not sure about D2005).
ReplyDeleteIn prior versions of Delphi this doesn't work.