I\'m a hesitant upgrader when it comes to development tools. For roughly half of my product I still use D7, and for others D2006.
The truth is, although Unicode supp
I just gave the Generic Collections and the enhanced For-loop a spin (don't mind the visual ugliness of the code (e.g. if-then-else on one line)):
program genericTList;
{$APPTYPE CONSOLE}
uses
SysUtils,
Generics.Collections;
var
myList : TList;
s: string;
begin
myList := TList.create;
try
myList.Add('Peter');
writeln('Inviting Peter');
myList.Add('Barbie');
writeln('Inviting Barbie');
if myList.Contains('Bob') then writeln('Bob has managed to sneak in...') else writeln('Bob is not invited!');
writeln('List of invited people:');
for s in myList do writeln(s); //feels sooo goood X-)
readln;
finally
FreeAndNil(myList);
end;
end.
After three years of staying away from Delphi, which seemed dying back then, I think I might return to this lovely world.
My greatest Delphi project seems to suffer from not being Unicode-ready, but Unicode is great stuff too, so I'll just have to fix the code in few places. Yesterday I also managed to get it to build and execute without errors (seems there was some sort of D2007->D2009 transition trickery involved) and I noticed that D2009 is just EXCELLENTLY FAST! It's better than the older versions in (almost*) every aspect.
*I have not found regressions YET.