Tag: rtl
C++ Builder TypeInfo alternative.
I bet most Delphi developers know about TypeInfo operator. It provides type information somehow similar to reflection in Java or .NET (of course a lot more limited). Take this simple example: It will simply write “Byte” on the…
Read More »That stupid garbage collector
I’ve heard this phrase a few times in regards to Delphi’s reference counting mechanics. Before continuing with this post please note — Delphi doesn’t have a Garbage Collector (as Java or .NET)! It uses Reference Counting as part…
Read More »Delphi 2009: reference to
It’s probably not news anymore but Delphi 2009 supports anonymous methods out of the box. To be able to support them, CodeGear developers added a new type of a “pointer to a method” called a managed method reference:…
Read More »Generics.Defaults: Bug
There is a bug in Generics.Defaults unit in Delphi 2009. If you read my previous post: Generic Defaults you should know already about the “3 bytes long” data types and how are those passed as const parameters to…
Read More »Generic Defaults
One important part of any generic collection classes are the “type support” functions. And what I mean are the functions specific to each type that perform: Comparison – will return a value indicating if A > B or…
Read More »Delphi 2009 – Exit;
A very useful and cool feature in Delphi 2009 is the Exit keyword. Yes, it’s that Exit that “returns” from a function call. So what’s so exiting about it? Nothing really – for people coming from C-like languages,…
Read More »Delphi Generics: Problem 1
Kids, don’t try this at home 🙂 Error: [DCC Fatal Error] Tests.DynamicArray.pas(772): F2084 Internal Error: URW1135 There you have it 🙂 The fix is rather simple but annoying: Declare a new type in the class/record like this: And…
Read More »New Delphi 2009 Generics
Finally Generics are a part of Delphi for Win32! This is a big push for CodeGear in order to bring Delphi out of stagnation it has been the last couple of years. Impressions after working with generics for…
Read More »