Skip to content

D9 For Loop Enhanced

We’ve been told for some time that there will be new features in the Win32 compiler in the next release of Delphi; here’s the first "official" word I’ve seen:

In the next release of Delphi, the compiler will support a new kind of for loop, dubbed the "for..in" loop. A "for..in" loop works just like a regular Delphi for loop except that you don’t have to deal with a loop index variable. If you want to run through all the strings in a collection object, you just say "Here’s the collection, here’s where I want to see each string, now gimme!"

This is supported in both the .NET and Win32 compilers.

Post a Comment

Your email is never published nor shared. Required fields are marked *

Bad Behavior has blocked 1846 access attempts in the last 7 days.

Close