mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-19 06:13:14 +01:00
These "walk around" the array being iterated over, so they're a bit trickier than other variables to get right.
9 lines
118 B
D
9 lines
118 B
D
void foo() {
|
|
void delegate()[] bar;
|
|
try {
|
|
} finally {
|
|
foreach (dg; bar)
|
|
dg();
|
|
}
|
|
}
|