[Issue 5660] yield syntax sugar
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 12 04:58:53 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5660
--- Comment #4 from bearophile_hugs at eml.cc 2011-09-12 04:58:31 PDT ---
Alternative syntax (here inside the generator yield is used like the "return"
statement):
yield(int) hanoiTower() {
yield(1);
foreach (x; hanoiTower()) {
yield x + 1;
yield 1;
}
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list