Please do not defer the scoped closure

Craig Black cblack at ara.com
Fri Mar 21 12:15:05 PDT 2008


"Frank Benoit" <keinfarbton at googlemail.com> wrote in message 
news:fs0rvu$8hm$1 at digitalmars.com...
>I am a bit nervous about the full closure does the silent heap allocation. 
>It was said, that there will be a possibility to make it work without the 
>allocation by using 'scope'.
>
> See:
> http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=62542
>
> I have lots of code using delegate literal in realtime code. I use it as 
> part of flow control. So refactoring (to avoid the delegate litarals) is 
> hard.
>
> Please do not defer that much longer. It's like removing an important 
> feature of D1 out of D2.

Lambdas syntax in C++ '0X will include a provision to specify explicitly 
whether to instantiate stack variables on the heap or not.

-Craig 





More information about the Digitalmars-d mailing list