Few recent dmd pull requests
Sean Kelly via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jun 26 12:56:52 PDT 2014
On Thursday, 26 June 2014 at 19:42:46 UTC, bearophile wrote:
> Sean Kelly:
>
>> I'm pretty biased, but am quite excited about:
>
> Mine was only a partial list :-)
>
>
>> void main() {
>> auto r = new Generator!string({
>> yield("the");
>> yield("quick");
>> yield("brown");
>> yield("fox");
>> });
>
> Do you need the "new" there? Is that a heap-allocated class
> instance? Is that r Generator working at module scope too?
I could hide the "new" somehow, but you're effectively creating a
Fiber so allocation has to happen somewhere.
More information about the Digitalmars-d
mailing list