Sharing the Joy of Software/Delphi in the .NET world

Tuesday, August 10, 2004

Delphi's new keyword -- FOREACH

Danny Thorpe has said that the next version of Delphi codename Diamondback will include for both Win32 and .NET the FOREACH keyword. Here is the quote:

In the next release of Delphi, the compiler will support a new kind of for loop, dubbed the "" loop. A "" 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!"

correction -- the syntax is and it will match foreach from C#.


  • Uh... no, he specifically said there *won't* be a FOREACH keyword... :-)

    By Anonymous Anonymous, at 8:05 PM  

  • I was wrong (sort of) but at least someone reads this damn blog!! :)

    By Blogger Chris Woodruff, at 9:34 PM  

Post a Comment

<< Home