Incorporating D

deadalnix deadalnix at gmail.com
Mon Jan 28 08:30:45 PST 2013


On Monday, 28 January 2013 at 16:26:29 UTC, Paulo Pinto wrote:
> This is not true for current native compilers and JVMs.
>
> If escape analysis can prove the object does not leave scope, 
> new actually allocates on the stack.
>

Modern can even speculate that an object will not leave scope, 
allocate it on stack, and move it on heap if it escape !


More information about the Digitalmars-d mailing list