[Issue 5660] yield syntax sugar

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 3 04:48:50 PDT 2011


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



--- Comment #2 from bearophile_hugs at eml.cc 2011-08-03 04:48:48 PDT ---
More programming in D shows me that syntax sugar like this one will be very
useful to me:

yield(int) foo() {
    yield(1);
}


So, is it possible to automatically convert such kind of code into a Range
(istead of opApply and fibers)?

-- 
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