Delphi doesn’t, but for the people interested what it does in C#:
Basically `yield` is syntactic sugar to make it a lot easier to write methods that return enumerators of some sort.
It delays (hence the yield keyword) execution until the enumerator as actually being used.
It is one of the hardest C# things to master (it is the most complicated transformation in the compiler, followed by anonymous methods – well maybe with the exception of async/await), but it can be very useful.
doesn’t have it either (thanks André!) has it too, but and also has iterator blocks.
Some start posts on yield:
- What is the yield keyword used for in C#? – Stack Overflow.
- Behind the scenes of the C# yield keyword « Struggles by Lars C..