[Semi OT] Language for Game Development talk

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 28 11:48:49 PDT 2014


On 9/28/2014 10:57 AM, po wrote:
>   His entire reason for not using C++ lambda, and wanting local functions
> instead, is faulty
>
> His reason: I heard they can perform heap allocation.
>
> Reality: No they do not perform heap allocation, that would only happen if you
> stuffed it into an std::function


D's will also do heap allocation, but only if you take the address of the local 
function.


More information about the Digitalmars-d mailing list