http://d.puremagic.com/issues/show_bug.cgi?id=5660



--- Comment #4 from bearophile_h...@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: -------

Reply via email to